mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 20:59:16 +00:00
improvement: removed await from "sendSeen" method to improve performance
This commit is contained in:
@@ -16,10 +16,11 @@ const SetTicketMessagesAsRead = async (ticket: Ticket): Promise<void> => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const wbot = await GetTicketWbot(ticket);
|
const wbot = await GetTicketWbot(ticket);
|
||||||
await wbot.sendSeen(`${ticket.contact.number}@c.us`);
|
wbot.sendSeen(`${ticket.contact.number}@c.us`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(
|
console.log(
|
||||||
"Could not mark messages as read. Maybe whatsapp session disconnected?"
|
"Could not mark messages as read. Maybe whatsapp session disconnected?",
|
||||||
|
err
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user