We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5f778e commit eb456f6Copy full SHA for eb456f6
src/api/services/channel.service.ts
@@ -624,7 +624,7 @@ export class ChannelStartupService {
624
"Chat"."updatedAt",
625
"Contact"."pushName",
626
"Contact"."profilePicUrl",
627
- "Contact"."unreadMessages"
+ "Chat"."unreadMessages"
628
FROM "Chat"
629
INNER JOIN "Message" ON "Chat"."remoteJid" = "Message"."key"->>'remoteJid'
630
LEFT JOIN "Contact" ON "Chat"."remoteJid" = "Contact"."remoteJid"
@@ -639,7 +639,7 @@ export class ChannelStartupService {
639
640
641
642
643
ORDER BY "Chat"."updatedAt" DESC;
644
`;
645
0 commit comments