feat: starting appbar notifications

This commit is contained in:
canove
2020-08-24 17:16:26 -03:00
parent 3fe436fd34
commit ea4ff654ff
17 changed files with 1113 additions and 305 deletions

View File

@@ -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;

View File

@@ -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,
{