From d2f6bd7e42bf6ec424a1cc746514ec601cf75646 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Tue, 1 Sep 2020 09:22:41 +0200 Subject: [PATCH] :shirt: Fix lint issue --- packages/cli/src/Server.ts | 2 +- packages/nodes-base/nodes/Salesforce/GenericFunctions.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/Server.ts b/packages/cli/src/Server.ts index c06795d209..aa3a30a6f4 100644 --- a/packages/cli/src/Server.ts +++ b/packages/cli/src/Server.ts @@ -249,7 +249,7 @@ class App { if (token === undefined || token === '') { return ResponseHelper.jwtAuthAuthorizationError(res, "Missing token"); } - if (jwtHeaderValuePrefix != '' && token.startsWith(jwtHeaderValuePrefix)) { + if (jwtHeaderValuePrefix !== '' && token.startsWith(jwtHeaderValuePrefix)) { token = token.replace(jwtHeaderValuePrefix + ' ', '').trimLeft(); } diff --git a/packages/nodes-base/nodes/Salesforce/GenericFunctions.ts b/packages/nodes-base/nodes/Salesforce/GenericFunctions.ts index 9b183ca73d..d7bdc7ddb3 100644 --- a/packages/nodes-base/nodes/Salesforce/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Salesforce/GenericFunctions.ts @@ -10,7 +10,7 @@ import { export async function salesforceApiRequest(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, method: string, resource: string, body: any = {}, qs: IDataObject = {}, uri?: string, option: IDataObject = {}): Promise { // tslint:disable-line:no-any const credentials = this.getCredentials('salesforceOAuth2Api'); - const subdomain = ((credentials!.accessTokenUrl as string).match(/https:\/\/(.+).salesforce\.com/) || [])[1] + const subdomain = ((credentials!.accessTokenUrl as string).match(/https:\/\/(.+).salesforce\.com/) || [])[1]; const options: OptionsWithUri = { method, body: method === "GET" ? undefined : body,