Skip to content

Commit 402d5af

Browse files
authored
Update monitor.service.ts
1 parent b554d8c commit 402d5af

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/whatsapp/services/monitor.service.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { join } from 'path';
77
import { Auth, ConfigService, Database, DelInstance, HttpServer, Redis } from '../../config/env.config';
88
import { Logger } from '../../config/logger.config';
99
import { INSTANCE_DIR, STORE_DIR } from '../../config/path.config';
10-
import { NotFoundException } from '../../exceptions';
1110
import { dbserver } from '../../libs/db.connect';
1211
import { RedisCache } from '../../libs/redis.client';
1312
import {
@@ -180,7 +179,6 @@ export class WAMonitoringService {
180179
this.logger.verbose('cleaning up instance in redis: ' + instanceName);
181180
this.cache.reference = instanceName;
182181
await this.cache.delAll();
183-
this.cache.disconnect();
184182
return;
185183
}
186184

@@ -263,8 +261,6 @@ export class WAMonitoringService {
263261
} else {
264262
this.logger.verbose('No instance keys found');
265263
}
266-
267-
this.cache.disconnect();
268264
}
269265

270266
private async loadInstancesFromDatabase() {

0 commit comments

Comments
 (0)