Minor improvements to Slack-Node

This commit is contained in:
Jan Oberhauser
2021-01-25 14:56:59 +01:00
parent 025272953e
commit 2c834ef9c4
2 changed files with 9 additions and 9 deletions

View File

@@ -798,10 +798,10 @@ export class Slack implements INodeType {
//https://api.slack.com/methods/chat.delete
if (operation === 'delete') {
const channel = this.getNodeParameter('channelId', i) as string;
const ts = this.getNodeParameter('ts', i) as string;
const timestamp = this.getNodeParameter('timestamp', i) as string;
const body: IDataObject = {
channel,
ts,
ts: timestamp,
};
// Add all the other options to the request
responseData = await slackApiRequest.call(this, 'POST', '/chat.delete', body, qs);