mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-16 12:12:55 -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 EventEmitter2 from 'eventemitter2';
|
||||||
import ffmpeg from 'fluent-ffmpeg';
|
import ffmpeg from 'fluent-ffmpeg';
|
||||||
import FormData from 'form-data';
|
import FormData from 'form-data';
|
||||||
import { readFileSync } from 'fs';
|
|
||||||
import Long from 'long';
|
import Long from 'long';
|
||||||
import mimeTypes from 'mime-types';
|
import mimeTypes from 'mime-types';
|
||||||
import NodeCache from 'node-cache';
|
import NodeCache from 'node-cache';
|
||||||
@ -232,7 +231,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
private readonly msgRetryCounterCache: CacheStore = new NodeCache();
|
private readonly msgRetryCounterCache: CacheStore = new NodeCache();
|
||||||
private readonly userDevicesCache: CacheStore = new NodeCache({
|
private readonly userDevicesCache: CacheStore = new NodeCache({
|
||||||
stdTTL: 300000,
|
stdTTL: 300000,
|
||||||
useClones: false
|
useClones: false,
|
||||||
});
|
});
|
||||||
private endSession = false;
|
private endSession = false;
|
||||||
private logBaileys = this.configService.get<Log>('LOG').BAILEYS;
|
private logBaileys = this.configService.get<Log>('LOG').BAILEYS;
|
||||||
|
Loading…
Reference in New Issue
Block a user