diff --git a/lib/actions/slack/utils.js b/lib/actions/slack/utils.js index 8ae00e1f7..238569792 100644 --- a/lib/actions/slack/utils.js +++ b/lib/actions/slack/utils.js @@ -178,7 +178,7 @@ const handleExecute = async (request, slack) => { reject(e); }); const directChannel = postResponse === null || postResponse === void 0 ? void 0 : postResponse.channel; - const resp2 = await slack.files.completeUploadExternal({ + await slack.files.completeUploadExternal({ files: [{ id: res.file_id ? res.file_id : "", title: fileName, @@ -188,10 +188,6 @@ const handleExecute = async (request, slack) => { winston.error(`${LOG_PREFIX} ${e.message}`, { webhookId }); reject(e); }); - winston.info(`response complete : ${JSON.stringify(resp2)}`); - // Workaround for regression in V2 upload, the initial - // comment does not support markdown formatting, breaking - // customer links } else { await slack.files.completeUploadExternal({ diff --git a/src/actions/slack/utils.ts b/src/actions/slack/utils.ts index 85eb6077c..fc03a3c42 100644 --- a/src/actions/slack/utils.ts +++ b/src/actions/slack/utils.ts @@ -198,7 +198,7 @@ export const handleExecute = async (request: Hub.ActionRequest, slack: WebClient reject(e) }) const directChannel = postResponse?.channel - const resp2 = await slack.files.completeUploadExternal({ + await slack.files.completeUploadExternal({ files: [{ id: res.file_id ? res.file_id : "", title: fileName, @@ -208,10 +208,6 @@ export const handleExecute = async (request: Hub.ActionRequest, slack: WebClient winston.error(`${LOG_PREFIX} ${e.message}`, {webhookId}) reject(e) }) - winston.info(`response complete : ${JSON.stringify(resp2)}`) - // Workaround for regression in V2 upload, the initial - // comment does not support markdown formatting, breaking - // customer links } else { await slack.files.completeUploadExternal({ files: [{