mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
fix: Encoded spaces in chatwoot webhook
This commit is contained in:
parent
66d06afaf7
commit
9ea1eaf3ed
@ -7,6 +7,7 @@
|
|||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
* Solved problem when disconnecting from the instance the instance was deleted
|
* Solved problem when disconnecting from the instance the instance was deleted
|
||||||
|
* Encoded spaces in chatwoot webhook
|
||||||
|
|
||||||
### Integrations
|
### Integrations
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@ export class InstanceController {
|
|||||||
this.chatwootService.initInstanceChatwoot(
|
this.chatwootService.initInstanceChatwoot(
|
||||||
instance,
|
instance,
|
||||||
instance.instanceName.split('-cwId-')[0],
|
instance.instanceName.split('-cwId-')[0],
|
||||||
`${urlServer}/chatwoot/webhook/${instance.instanceName}`,
|
`${urlServer}/chatwoot/webhook/${encodeURIComponent(instance.instanceName)}`,
|
||||||
qrcode,
|
qrcode,
|
||||||
number,
|
number,
|
||||||
);
|
);
|
||||||
@ -216,7 +216,7 @@ export class InstanceController {
|
|||||||
conversation_pending: chatwoot_conversation_pending || false,
|
conversation_pending: chatwoot_conversation_pending || false,
|
||||||
number,
|
number,
|
||||||
name_inbox: instance.instanceName,
|
name_inbox: instance.instanceName,
|
||||||
webhook_url: `${urlServer}/chatwoot/webhook/${instance.instanceName}`,
|
webhook_url: `${urlServer}/chatwoot/webhook/${encodeURIComponent(instance.instanceName)}`,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user