mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-24 09:28:39 -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",
|
"Chat"."updatedAt",
|
||||||
"Contact"."pushName",
|
"Contact"."pushName",
|
||||||
"Contact"."profilePicUrl",
|
"Contact"."profilePicUrl",
|
||||||
"Contact"."unreadMessages"
|
"Chat"."unreadMessages"
|
||||||
FROM "Chat"
|
FROM "Chat"
|
||||||
INNER JOIN "Message" ON "Chat"."remoteJid" = "Message"."key"->>'remoteJid'
|
INNER JOIN "Message" ON "Chat"."remoteJid" = "Message"."key"->>'remoteJid'
|
||||||
LEFT JOIN "Contact" ON "Chat"."remoteJid" = "Contact"."remoteJid"
|
LEFT JOIN "Contact" ON "Chat"."remoteJid" = "Contact"."remoteJid"
|
||||||
@ -639,7 +639,7 @@ export class ChannelStartupService {
|
|||||||
"Chat"."updatedAt",
|
"Chat"."updatedAt",
|
||||||
"Contact"."pushName",
|
"Contact"."pushName",
|
||||||
"Contact"."profilePicUrl",
|
"Contact"."profilePicUrl",
|
||||||
"Contact"."unreadMessages"
|
"Chat"."unreadMessages"
|
||||||
ORDER BY "Chat"."updatedAt" DESC;
|
ORDER BY "Chat"."updatedAt" DESC;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user