Small improvements to #1366

This commit is contained in:
ricardo
2021-01-22 15:23:04 -05:00
parent 2bd05abc3e
commit 39fd7dc8ce
4 changed files with 5 additions and 4 deletions

View File

@@ -103,14 +103,14 @@ export class Slack implements INodeType {
description: INodeTypeDescription = {
displayName: 'Slack',
name: 'slack',
icon: 'file:slack.png',
icon: 'file:slack.svg',
group: ['output'],
version: 1,
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Consume Slack API',
defaults: {
name: 'Slack',
color: '#BB2244',
color: '#E01E5A',
},
inputs: ['main'],
outputs: ['main'],
@@ -799,7 +799,7 @@ export class Slack implements INodeType {
if (operation === 'getPermalink') {
const channel = this.getNodeParameter('channelId', i) as string;
const ts = this.getNodeParameter('messageTs', i) as string;
const qs = { channel: channel, message_ts: ts };
const qs = { channel, message_ts: ts };
responseData = await slackApiRequest.call(this, 'GET', '/chat.getPermalink', {}, qs);
}
}