🐛 Fix get profile operation on Slack Node (#1799)

This commit is contained in:
Omar Ajoue 2021-05-19 02:12:26 +02:00 committed by GitHub
parent 0fdae7fec3
commit 76e1b9fba0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}