Skip to content

Commit 362736e

Browse files
committed
refactor(whatsapp): format userDevicesCache initialization for improved readability
1 parent 2544c10 commit 362736e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ import { randomBytes } from 'crypto';
134134
import EventEmitter2 from 'eventemitter2';
135135
import ffmpeg from 'fluent-ffmpeg';
136136
import FormData from 'form-data';
137-
import { readFileSync } from 'fs';
138137
import Long from 'long';
139138
import mimeTypes from 'mime-types';
140139
import NodeCache from 'node-cache';
@@ -230,10 +229,10 @@ export class BaileysStartupService extends ChannelStartupService {
230229

231230
private authStateProvider: AuthStateProvider;
232231
private readonly msgRetryCounterCache: CacheStore = new NodeCache();
233-
private readonly userDevicesCache: CacheStore = new NodeCache({
234-
stdTTL: 300000,
235-
useClones: false
236-
});
232+
private readonly userDevicesCache: CacheStore = new NodeCache({
233+
stdTTL: 300000,
234+
useClones: false,
235+
});
237236
private endSession = false;
238237
private logBaileys = this.configService.get<Log>('LOG').BAILEYS;
239238

0 commit comments

Comments
 (0)