fix: integration

This commit is contained in:
Davidson Gomes
2024-02-19 16:04:48 -03:00
parent 703bc310a7
commit e2c67d7dae
3 changed files with 23 additions and 5 deletions

View File

@@ -105,7 +105,6 @@ export class InstanceController {
this.cache,
this.chatwootCache,
);
await this.waMonitor.saveInstance({ integration, instanceName, token, number });
} else {
instance = new BaileysStartupService(
this.configService,
@@ -116,6 +115,8 @@ export class InstanceController {
);
}
await this.waMonitor.saveInstance({ integration, instanceName, token, number });
instance.instanceName = instanceName;
const instanceId = v4();