From 093fa3d49a439d981dae1df379db01d1a3f0b9fb Mon Sep 17 00:00:00 2001 From: Merlin <50715457+BothimTV@users.noreply.github.com> Date: Tue, 2 Apr 2024 20:41:53 +0200 Subject: [PATCH] Update server/notification-providers/call-me-bot.js Co-authored-by: Frank Elsinga --- server/notification-providers/call-me-bot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/notification-providers/call-me-bot.js b/server/notification-providers/call-me-bot.js index 9ed3bb49..daa9ccde 100644 --- a/server/notification-providers/call-me-bot.js +++ b/server/notification-providers/call-me-bot.js @@ -11,8 +11,8 @@ class CallMeBot extends NotificationProvider { const okMsg = "Sent Successfully."; try { const url = new URL(notification.callMeBotEndpoint); - url.searchParams.delete("text"); - await axios.get(`${url}&text=${encodeURIComponent(msg)}`); + url.searchParams.set("text", msg); + await axios.get(url.toString()); return okMsg; } catch (error) { this.throwGeneralAxiosError(error);