feat: added auto_create to the chatwoot set to create the inbox automatically or not

This commit is contained in:
Davidson Gomes
2023-12-11 17:32:07 -03:00
parent 324d46120b
commit 7a24f52782
6 changed files with 18 additions and 11 deletions

View File

@@ -446,15 +446,8 @@ export class InstanceController {
number,
reopen_conversation: chatwoot_reopen_conversation || false,
conversation_pending: chatwoot_conversation_pending || false,
auto_create: true,
});
this.chatwootService.initInstanceChatwoot(
instance,
instance.instanceName.split('-cwId-')[0],
`${urlServer}/chatwoot/webhook/${encodeURIComponent(instance.instanceName)}`,
qrcode,
number,
);
} catch (error) {
this.logger.log(error);
}