From 1b7aae45905c624a68280c1e6695bc236fc07815 Mon Sep 17 00:00:00 2001 From: Jakub Klena Date: Fri, 24 May 2024 08:44:15 +0200 Subject: [PATCH] removing some debug msgs --- flow/slack_connector.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/flow/slack_connector.js b/flow/slack_connector.js index 6561217..8c073a6 100644 --- a/flow/slack_connector.js +++ b/flow/slack_connector.js @@ -82,7 +82,6 @@ exports.install = function(instance) { }; if (F.is4) { - instance.send2("is F4"); let opt = { 'method': 'post', 'url': 'https://slack.com/api/chat.postMessage', @@ -99,13 +98,10 @@ exports.install = function(instance) { } } }; - instance.send2(opt); REQUEST(opt); } else { - instance.send2("is NOT F4"); - - U.request('https://slack.com/api/chat.postMessage', ['json', 'post'], message, function(err, data, status, headers, host) { + U.request('https://slack.com/api/chat.postMessage', ['json', 'post'], JSON.stringify(message), function(err, data, status, headers, host) { if (response && !err) { response.data = { data: data, status: status, headers: headers, host: host }; instance.send2(response);