Fix titleCase -> capitalCase

This commit is contained in:
Jan Oberhauser 2020-04-14 21:07:53 +02:00
parent 90fe5113a0
commit 9816a3a711
2 changed files with 4 additions and 4 deletions

View file

@ -95,8 +95,8 @@ import {
} from './CompanyInterface';
import {
capitalCase,
pascalCase,
titleCase,
} from 'change-case';
import * as moment from 'moment-timezone';
@ -749,7 +749,7 @@ export class Keap implements INodeType {
qs.permission = (qs.permission as string).toUpperCase();
}
if (qs.type) {
qs.type = titleCase(qs.type as string);
qs.type = capitalCase(qs.type as string);
}
if (qs.viewable) {
qs.viewable = (qs.viewable as string).toUpperCase();

View file

@ -17,7 +17,7 @@ import {
} from './GenericFunctions';
import {
titleCase,
capitalCase,
} from 'change-case';
export class KeapTrigger implements INodeType {
@ -81,7 +81,7 @@ export class KeapTrigger implements INodeType {
const hookName = hook;
const hookId = hook;
returnData.push({
name: titleCase((hookName as string).replace('.', ' ')),
name: capitalCase((hookName as string).replace('.', ' ')),
value: hookId as string,
});
}