File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -662,9 +662,8 @@ export class ChannelStartupService {
662662 GROUP BY
663663 "Chat"."id",
664664 "Chat"."remoteJid",
665- "Contact"."id",
666- "Message"."messageTimestamp"
667- ORDER BY "Message"."messageTimestamp" DESC NULLS LAST, "Chat"."updatedAt" DESC;
665+ "Contact"."id"
666+ ORDER BY last_message_messageTimestamp DESC NULLS LAST, "Chat"."updatedAt" DESC;
668667 ` ;
669668 } else {
670669 results = await this . prismaRepository . $queryRaw `
@@ -698,9 +697,8 @@ export class ChannelStartupService {
698697 GROUP BY
699698 "Chat"."id",
700699 "Chat"."remoteJid",
701- "Contact"."id",
702- "Message"."messageTimestamp"
703- ORDER BY "Message"."messageTimestamp" DESC NULLS LAST, "Chat"."updatedAt" DESC;
700+ "Contact"."id"
701+ ORDER BY last_message_messageTimestamp DESC NULLS LAST, "Chat"."updatedAt" DESC;
704702 ` ;
705703 }
706704
You can’t perform that action at this time.
0 commit comments