Minor improvements to Slack:getPermalink

This commit is contained in:
Jan Oberhauser
2021-01-23 12:17:38 +01:00
parent 39fd7dc8ce
commit 09f075cc5a
3 changed files with 55 additions and 51 deletions

View File

@@ -798,8 +798,11 @@ export class Slack implements INodeType {
//https://api.slack.com/methods/chat.getPermalink
if (operation === 'getPermalink') {
const channel = this.getNodeParameter('channelId', i) as string;
const ts = this.getNodeParameter('messageTs', i) as string;
const qs = { channel, message_ts: ts };
const timestamp = this.getNodeParameter('timestamp', i) as string;
const qs = {
channel,
message_ts: timestamp,
};
responseData = await slackApiRequest.call(this, 'GET', '/chat.getPermalink', {}, qs);
}
}