From 4ef2b294bb6239527cb9ed375380b5561eb8beaf Mon Sep 17 00:00:00 2001 From: Skorpios Date: Mon, 17 Feb 2025 17:33:54 -0800 Subject: [PATCH] Used string service instead of hardcoded value. --- Server/controllers/notificationController.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Server/controllers/notificationController.js b/Server/controllers/notificationController.js index ec12db928..bce20ea13 100644 --- a/Server/controllers/notificationController.js +++ b/Server/controllers/notificationController.js @@ -22,17 +22,17 @@ class NotificationController { next(handleValidationError(error, SERVICE_NAME)); return; } - + try { const { monitorId, type, platform, config } = req.body; - + const networkResponse = { monitor: { _id: monitorId, name: "Test Monitor", url: "http://www.google.com" }, status: false, statusChanged: true, prevStatus: true, }; - + if (type === "webhook") { const notification = { type, @@ -45,11 +45,11 @@ class NotificationController { notification ); } - + return res.success({ - msg: "Notification sent successfully" + msg: this.stringService.webhookSendSuccess }); - + } catch (error) { next(handleError(error, SERVICE_NAME, "triggerNotification")); }