From f94faa2f4c942063accfb5bdd52193373619037e Mon Sep 17 00:00:00 2001 From: Daan Meijer Date: Sat, 14 Oct 2023 19:24:40 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Nelson Chan <3271800+chakflying@users.noreply.github.com> --- 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 addee749..194445f0 100644 --- a/server/notification-providers/slack.js +++ b/server/notification-providers/slack.js @@ -71,7 +71,7 @@ class Slack extends NotificationProvider { * @param {object} heartbeatJSON The heartbeat object * @param {string} title The message title * @param {string} msg The message body - * @returns {Promise<*[object]>} The rich content blocks for the Slack message + * @returns {Array} The rich content blocks for the Slack message */ static buildBlocks(baseURL, monitorJSON, heartbeatJSON, title, msg) { @@ -147,7 +147,7 @@ class Slack extends NotificationProvider { "attachments": [ { "color": (heartbeatJSON["status"] === UP) ? "#2eb886" : "#e01e5a", - "blocks": await Slack.buildBlocks(baseURL, monitorJSON, heartbeatJSON, title, msg), + "blocks": Slack.buildBlocks(baseURL, monitorJSON, heartbeatJSON, title, msg), } ] };