Skip to content

Commit 46f14e3

Browse files
committed
fix(channel): remove Message.pushName fallback from MySQL CASE query
1 parent b84d951 commit 46f14e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/api/services/channel.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ export class ChannelStartupService {
752752
JSON_UNQUOTE(JSON_EXTRACT(Message.key, '$.remoteJid')) as remoteJid,
753753
CASE
754754
WHEN JSON_UNQUOTE(JSON_EXTRACT(Message.key, '$.remoteJid')) LIKE '%@g.us' THEN COALESCE(Chat.name, Contact.pushName)
755-
ELSE COALESCE(Contact.pushName, Message.pushName)
755+
ELSE Contact.pushName
756756
END as pushName,
757757
Contact.profilePicUrl,
758758
COALESCE(

0 commit comments

Comments
 (0)