mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 11:49:19 +00:00
feat: starting appbar notifications
This commit is contained in:
@@ -126,7 +126,6 @@ exports.store = async (req, res, next) => {
|
||||
});
|
||||
|
||||
if (media) {
|
||||
console.log(media);
|
||||
const newMedia = MessageMedia.fromFilePath(req.file.path);
|
||||
|
||||
message.mediaUrl = req.file.filename;
|
||||
|
||||
@@ -27,14 +27,16 @@ exports.index = async (req, res) => {
|
||||
},
|
||||
];
|
||||
|
||||
if (status === "open") {
|
||||
if (status) {
|
||||
whereCondition = {
|
||||
...whereCondition,
|
||||
status: { [Sequelize.Op.or]: ["pending", "open"] },
|
||||
status: status,
|
||||
};
|
||||
} else if (status === "closed") {
|
||||
whereCondition = { ...whereCondition, status: "closed" };
|
||||
} else if (searchParam) {
|
||||
}
|
||||
// else if (status === "closed") {
|
||||
// whereCondition = { ...whereCondition, status: "closed" };
|
||||
// }
|
||||
else if (searchParam) {
|
||||
includeCondition = [
|
||||
...includeCondition,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user