mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-24 09:28:39 -06:00
fix: Encoded spaces in chatwoot webhook
This commit is contained in:
parent
8afcfde078
commit
2637aebb7f
@ -52,7 +52,7 @@ export class ChatwootController {
|
|||||||
|
|
||||||
const response = {
|
const response = {
|
||||||
...result,
|
...result,
|
||||||
webhook_url: `${urlServer}/chatwoot/webhook/${instance.instanceName}`,
|
webhook_url: `${urlServer}/chatwoot/webhook/${encodeURIComponent(instance.instanceName)}`,
|
||||||
};
|
};
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
@ -78,7 +78,7 @@ export class ChatwootController {
|
|||||||
|
|
||||||
const response = {
|
const response = {
|
||||||
...result,
|
...result,
|
||||||
webhook_url: `${urlServer}/chatwoot/webhook/${instance.instanceName}`,
|
webhook_url: `${urlServer}/chatwoot/webhook/${encodeURIComponent(instance.instanceName)}`,
|
||||||
};
|
};
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
|
@ -94,7 +94,7 @@ export class WAMonitoringService {
|
|||||||
if (findChatwoot && findChatwoot.enabled) {
|
if (findChatwoot && findChatwoot.enabled) {
|
||||||
chatwoot = {
|
chatwoot = {
|
||||||
...findChatwoot,
|
...findChatwoot,
|
||||||
webhook_url: `${urlServer}/chatwoot/webhook/${key}`,
|
webhook_url: `${urlServer}/chatwoot/webhook/${encodeURIComponent(key)}`,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user