refactor(core): Stop importing LoggerProxy and createDeferredPromise in nodes-base (no-changelog) (#5742)

* refactor(core): Stop importing LoggerProxy in nodes-base

* refactor(core): Stop importing createDeferredPromise in nodes-base
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-03-22 14:04:15 +01:00
committed by GitHub
parent 40aacf9279
commit 38e91ab730
9 changed files with 67 additions and 40 deletions

View File

@@ -8,7 +8,7 @@ import type {
INodePropertyOptions,
JsonObject,
} from 'n8n-workflow';
import { LoggerProxy as Logger, NodeApiError } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow';
import moment from 'moment-timezone';
@@ -109,7 +109,7 @@ export async function salesforceApiRequest(
qs,
instance_url as string,
);
Logger.debug(
this.logger.debug(
`Authentication for "Salesforce" node is using "jwt". Invoking URI ${options.uri}`,
);
options.headers!.Authorization = `Bearer ${access_token}`;
@@ -130,7 +130,7 @@ export async function salesforceApiRequest(
qs,
credentials.oauthTokenData.instance_url,
);
Logger.debug(
this.logger.debug(
`Authentication for "Salesforce" node is using "OAuth2". Invoking URI ${options.uri}`,
);
Object.assign(options, option);