Skip to content

Commit

Permalink
chore: Updated WhatsApp baileys service
Browse files Browse the repository at this point in the history
Modified the WhatsApp baileys service to improve the overall functionality. This change aims to enhance the user experience and maintain code quality.

Please note that only the 'src/api/services/channels/whatsapp.baileys.service.ts' file has been modified.
  • Loading branch information
dgcode-tec committed Jun 26, 2024
1 parent 79cadad commit a737fed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/services/channels/whatsapp.baileys.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3172,7 +3172,7 @@ export class BaileysStartupService extends ChannelStartupService {
if (!isJidGroup(groupJid)) return null;

if (await groupMetadataCache.has(groupJid)) {
this.logger.verbose(`Cache request for group: ${groupJid}`);
console.log(`Cache request for group: ${groupJid}`);
const meta = await groupMetadataCache.get(groupJid);

if (Date.now() - meta.timestamp > 3600000) {
Expand All @@ -3182,7 +3182,7 @@ export class BaileysStartupService extends ChannelStartupService {
return meta.data;
}

this.logger.verbose(`Cache request for group: ${groupJid} - not found`);
console.log(`Cache request for group: ${groupJid} - not found`);
return await this.updateGroupMetadataCache(groupJid);
}

Expand Down

0 comments on commit a737fed

Please sign in to comment.