Skip to content

Commit b9d9761

Browse files
authored
Update whatsapp.baileys.service.ts
1 parent 689c14c commit b9d9761

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,10 @@ export class BaileysStartupService extends ChannelStartupService {
226226

227227
private authStateProvider: AuthStateProvider;
228228
private readonly msgRetryCounterCache: CacheStore = new NodeCache();
229-
private readonly userDevicesCache: CacheStore = new NodeCache();
229+
private readonly userDevicesCache: CacheStore = new NodeCache({
230+
stdTTL: 300000,
231+
useClones: false
232+
});
230233
private endSession = false;
231234
private logBaileys = this.configService.get<Log>('LOG').BAILEYS;
232235

0 commit comments

Comments
 (0)