mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-22 20:12:02 -06:00
Fix unreadMessages for fetchChats query
This commit is contained in:
parent
f5f778ecbe
commit
eb456f6a88
@ -624,7 +624,7 @@ export class ChannelStartupService {
|
||||
"Chat"."updatedAt",
|
||||
"Contact"."pushName",
|
||||
"Contact"."profilePicUrl",
|
||||
"Contact"."unreadMessages"
|
||||
"Chat"."unreadMessages"
|
||||
FROM "Chat"
|
||||
INNER JOIN "Message" ON "Chat"."remoteJid" = "Message"."key"->>'remoteJid'
|
||||
LEFT JOIN "Contact" ON "Chat"."remoteJid" = "Contact"."remoteJid"
|
||||
@ -639,7 +639,7 @@ export class ChannelStartupService {
|
||||
"Chat"."updatedAt",
|
||||
"Contact"."pushName",
|
||||
"Contact"."profilePicUrl",
|
||||
"Contact"."unreadMessages"
|
||||
"Chat"."unreadMessages"
|
||||
ORDER BY "Chat"."updatedAt" DESC;
|
||||
`;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user