Also fix Mattermost desactive typo in execute-function

This commit is contained in:
Jan Oberhauser 2020-01-17 07:26:59 -06:00
parent 731d645e68
commit a00de10939

View file

@ -900,9 +900,12 @@ export class Mattermost implements INodeType {
Object.assign(body, otherOptions);
}
} else if (resource === 'user') {
if (operation === 'desactive') {
// TODO: Remove the "deactive" again in the future. In here temporary
// to not break workflows for people which set the option before
// typo got fixed. JO 2020-01-17
if (operation === 'deactive' || operation === 'desactive') {
// ----------------------------------
// user:desactive
// user:deactive
// ----------------------------------
const userId = this.getNodeParameter('userId', i) as string;
requestMethod = 'DELETE';