Merge pull request #1332 from theeusmartins/main

Defininando TTL no userDivicesCache igual usado no Baileys
This commit is contained in:
Davidson Gomes 2025-05-10 11:26:23 -03:00 committed by GitHub
commit 341a0d884f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -230,7 +230,10 @@ export class BaileysStartupService extends ChannelStartupService {
private authStateProvider: AuthStateProvider;
private readonly msgRetryCounterCache: CacheStore = new NodeCache();
private readonly userDevicesCache: CacheStore = new NodeCache();
private readonly userDevicesCache: CacheStore = new NodeCache({
stdTTL: 300000,
useClones: false
});
private endSession = false;
private logBaileys = this.configService.get<Log>('LOG').BAILEYS;