fix: command to create new instances set to /new_instance:<NAME>:<NUMBER>

This commit is contained in:
Davidson Gomes
2023-07-24 15:05:03 -03:00
parent 7103a95305
commit fff420b652
3 changed files with 61 additions and 2 deletions

View File

@@ -94,4 +94,10 @@ export class ChatwootController {
return chatwootService.receiveWebhook(instance, data);
}
public async newInstance(data: any) {
const chatwootService = new ChatwootService(waMonitor, this.configService);
return chatwootService.newInstance(data);
}
}