Skip to content

Commit

Permalink
🐛 Fixes issue #651 and #652
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoE105 committed Jun 15, 2020
1 parent acfc4fc commit 8cf55d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/nodes-base/credentials/SlackOAuth2Api.credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ import {
//https://api.slack.com/authentication/oauth-v2
const userScopes = [
'chat:write',
'conversations:history',
'conversations:read',
'files:read',
'files:write',
'stars:read',
'stars:write',
];


export class SlackOAuth2Api implements ICredentialType {
name = 'slackOAuth2Api';
extends = [
Expand Down
4 changes: 4 additions & 0 deletions packages/nodes-base/nodes/Slack/Slack.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,10 @@ export class Slack implements INodeType {
body.username = this.getNodeParameter('username', i) as string;
}

// ignore body.as_user as it's deprecated

delete body.as_user;

if (!jsonParameters) {
const attachments = this.getNodeParameter('attachments', i, []) as unknown as Attachment[];
const blocksUi = (this.getNodeParameter('blocksUi', i, []) as IDataObject).blocksValues as IDataObject[];
Expand Down

0 comments on commit 8cf55d4

Please sign in to comment.