fixed linting errors

pull/3900/head
Daan Meijer 7 months ago
parent 9577d9514a
commit 3c0c5871ad

@ -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<object>} The axios response
* @returns {Promise<object>} 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);

Loading…
Cancel
Save