fix: adjust in instance name in chatwoot

This commit is contained in:
Davidson Gomes 2023-07-29 11:30:37 -03:00
parent fe2b9774d8
commit cffcca9722
2 changed files with 1 additions and 18 deletions

View File

@ -179,7 +179,7 @@ export class InstanceController {
token: chatwoot_token, token: chatwoot_token,
url: chatwoot_url, url: chatwoot_url,
sign_msg: chatwoot_sign_msg || false, sign_msg: chatwoot_sign_msg || false,
name_inbox: instance.instanceName, name_inbox: instance.instanceName.split('-cwId-')[0],
number, number,
reopen_conversation: chatwoot_reopen_conversation || false, reopen_conversation: chatwoot_reopen_conversation || false,
conversation_pending: chatwoot_conversation_pending || false, conversation_pending: chatwoot_conversation_pending || false,

View File

@ -586,23 +586,6 @@ export class WAStartupService {
statusReason: DisconnectReason.connectionClosed, statusReason: DisconnectReason.connectionClosed,
}); });
this.logger.verbose('Sending data to webhook in event STATUS_INSTANCE');
this.sendDataWebhook(Events.STATUS_INSTANCE, {
instance: this.instance.name,
status: 'removed',
});
if (this.localChatwoot.enabled) {
this.chatwootService.eventWhatsapp(
Events.STATUS_INSTANCE,
{ instanceName: this.instance.name },
{
instance: this.instance.name,
status: 'removed',
},
);
}
this.logger.verbose('endSession defined as true'); this.logger.verbose('endSession defined as true');
this.endSession = true; this.endSession = true;