mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
🐛 Fix slack as_user (#708)
* Ignore as_user only when it is false * Update as_user description
This commit is contained in:
committed by
GitHub
parent
5d6c7657cb
commit
fe56c8778d
@@ -452,12 +452,9 @@ export class Slack implements INodeType {
|
||||
}
|
||||
if (body.as_user === false) {
|
||||
body.username = this.getNodeParameter('username', i) as string;
|
||||
delete body.as_user;
|
||||
}
|
||||
|
||||
// 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[];
|
||||
|
||||
Reference in New Issue
Block a user