From 3c0c5871adf5328b5046ee826a05ed97d76d6e05 Mon Sep 17 00:00:00 2001 From: Daan Meijer Date: Sun, 15 Oct 2023 16:46:28 +0200 Subject: [PATCH] fixed linting errors --- server/notification-providers/slack.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/notification-providers/slack.js b/server/notification-providers/slack.js index ffe3afd0..12970585 100644 --- a/server/notification-providers/slack.js +++ b/server/notification-providers/slack.js @@ -294,7 +294,7 @@ class Slack extends NotificationProvider { * @param {object} options Slack configuration * @param {object} heartbeatJSON The heartbeat bean * @param {object} message The message object to send - * @return {Promise} The axios response + * @returns {Promise} The axios response */ static async deliverMessageViaAppApi(options, heartbeatJSON, message) { @@ -314,7 +314,7 @@ class Slack extends NotificationProvider { log.info("slack", `Updating ${existingAlerts.length} message(s)`); //Update the messages in parallel - const responses = await Promise.all(existingAlerts.map(( {channel, ts} ) => { + const responses = await Promise.all(existingAlerts.map(( { channel, ts } ) => { message.channel = channel; message.ts = ts; return axios.post(Slack.ENDPOINTS.update, message, axiosConfig);