mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
🐛 Fix get profile operation on Slack Node (#1799)
This commit is contained in:
parent
0fdae7fec3
commit
76e1b9fba0
|
@ -1035,11 +1035,11 @@ export class Slack implements INodeType {
|
|||
if (operation === 'get') {
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
|
||||
const body: IDataObject = {};
|
||||
const qs: IDataObject = {};
|
||||
|
||||
Object.assign(body, additionalFields);
|
||||
Object.assign(qs, additionalFields);
|
||||
|
||||
responseData = await slackApiRequest.call(this, 'POST', '/users.profile.get', body);
|
||||
responseData = await slackApiRequest.call(this, 'POST', '/users.profile.get', undefined, qs);
|
||||
|
||||
responseData = responseData.profile;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue