test: adjusts wasocket

This commit is contained in:
Davidson Gomes 2023-12-01 15:04:57 -03:00
parent e49f30641e
commit d75163aa57

View File

@ -277,7 +277,6 @@ export class WAMonitoringService {
const instance = new WAStartupService(this.configService, this.eventEmitter, this.repository, this.cache); const instance = new WAStartupService(this.configService, this.eventEmitter, this.repository, this.cache);
instance.instanceName = name; instance.instanceName = name;
this.logger.verbose('Instance loaded: ' + name); this.logger.verbose('Instance loaded: ' + name);
console.log('Instance loaded: ' + name);
await instance.connectToWhatsapp(); await instance.connectToWhatsapp();
this.logger.verbose('connectToWhatsapp: ' + name); this.logger.verbose('connectToWhatsapp: ' + name);
@ -304,7 +303,6 @@ export class WAMonitoringService {
if (collections.length > 0) { if (collections.length > 0) {
this.logger.verbose('Reading collections and setting instances'); this.logger.verbose('Reading collections and setting instances');
console.log(collections);
await Promise.all(collections.map((coll) => this.setInstance(coll.namespace.replace(/^[\w-]+\./, '')))); await Promise.all(collections.map((coll) => this.setInstance(coll.namespace.replace(/^[\w-]+\./, ''))));
} else { } else {
this.logger.verbose('No collections found'); this.logger.verbose('No collections found');