Skip to content

Commit 2037e78

Browse files
committed
fix: send message to group without no cache (local or redis)
1 parent 7b41d33 commit 2037e78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1840,7 +1840,7 @@ export class BaileysStartupService extends ChannelStartupService {
18401840
throw new BadRequestException(isWA);
18411841
}
18421842

1843-
const sender = isWA.jid;
1843+
const sender = isWA.jid.toLowerCase();
18441844

18451845
this.logger.verbose(`Sending message to ${sender}`);
18461846

@@ -3290,10 +3290,10 @@ export class BaileysStartupService extends ChannelStartupService {
32903290
}
32913291
}
32923292

3293-
private async getGroupMetadataCache(groupJid: string) {
3293+
private getGroupMetadataCache = async (groupJid: string) => {
32943294
if (!isJidGroup(groupJid)) return null;
32953295

3296-
const cacheConf = configService.get<CacheConf>('CACHE');
3296+
const cacheConf = this.configService.get<CacheConf>('CACHE');
32973297

32983298
if ((cacheConf?.REDIS?.ENABLED && cacheConf?.REDIS?.URI !== '') || cacheConf?.LOCAL?.ENABLED) {
32993299
if (await groupMetadataCache?.has(groupJid)) {

0 commit comments

Comments
 (0)