mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-13 15:14:49 -06:00
refactor(whatsapp): format userDevicesCache initialization for improved readability
This commit is contained in:
parent
2544c10592
commit
362736ea71
@ -134,7 +134,6 @@ import { randomBytes } from 'crypto';
|
||||
import EventEmitter2 from 'eventemitter2';
|
||||
import ffmpeg from 'fluent-ffmpeg';
|
||||
import FormData from 'form-data';
|
||||
import { readFileSync } from 'fs';
|
||||
import Long from 'long';
|
||||
import mimeTypes from 'mime-types';
|
||||
import NodeCache from 'node-cache';
|
||||
@ -230,10 +229,10 @@ export class BaileysStartupService extends ChannelStartupService {
|
||||
|
||||
private authStateProvider: AuthStateProvider;
|
||||
private readonly msgRetryCounterCache: CacheStore = new NodeCache();
|
||||
private readonly userDevicesCache: CacheStore = new NodeCache({
|
||||
stdTTL: 300000,
|
||||
useClones: false
|
||||
});
|
||||
private readonly userDevicesCache: CacheStore = new NodeCache({
|
||||
stdTTL: 300000,
|
||||
useClones: false,
|
||||
});
|
||||
private endSession = false;
|
||||
private logBaileys = this.configService.get<Log>('LOG').BAILEYS;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user