Browse Source

fix

push-params
Evan Feenstra 5 years ago
parent
commit
3564f4e437
  1. 2
      api/controllers/messages.ts
  2. 2
      dist/api/controllers/messages.js
  3. 2
      dist/api/controllers/messages.js.map

2
api/controllers/messages.ts

@ -283,7 +283,7 @@ export const readMessages = async (req, res) => {
} }
}); });
const chat = await models.Chat.findOne({ where: { id: chat_id } }) const chat = await models.Chat.findOne({ where: { id: chat_id } })
chat.update({ seen: true }); await chat.update({ seen: true });
success(res, {}) success(res, {})

2
dist/api/controllers/messages.js

@ -250,7 +250,7 @@ exports.readMessages = (req, res) => __awaiter(void 0, void 0, void 0, function*
} }
}); });
const chat = yield models_1.models.Chat.findOne({ where: { id: chat_id } }); const chat = yield models_1.models.Chat.findOne({ where: { id: chat_id } });
chat.update({ seen: true }); yield chat.update({ seen: true });
res_1.success(res, {}); res_1.success(res, {});
hub_1.sendNotification(chat, '', 'badge'); hub_1.sendNotification(chat, '', 'badge');
socket.sendJson({ socket.sendJson({

2
dist/api/controllers/messages.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save