improvement: code cleanup

This commit is contained in:
canove
2021-01-07 22:01:13 -03:00
parent 896f122cf7
commit c8c8dc43e9
9 changed files with 297 additions and 250 deletions

View File

@@ -15,6 +15,8 @@ const SetTicketMessagesAsRead = async (ticket: Ticket): Promise<void> => {
}
);
await ticket.update({ unreadMessages: 0 });
try {
const wbot = await GetTicketWbot(ticket);
wbot.sendSeen(`${ticket.contact.number}@${ticket.isGroup ? "g" : "c"}.us`);