refactor: Impose import/order linting rule across nodes packages (no-changelog) (#12314)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-12-19 18:46:14 +01:00
committed by GitHub
parent 8c635993bd
commit bafac73eb5
1120 changed files with 2677 additions and 2827 deletions

View File

@@ -1,3 +1,4 @@
import { omit } from 'lodash';
import type {
IExecuteFunctions,
IHookFunctions,
@@ -9,7 +10,6 @@ import type {
} from 'n8n-workflow';
import { NodeApiError, NodeOperationError } from 'n8n-workflow';
import { omit } from 'lodash';
import type {
AddressFixedCollection,
FreshserviceCredentials,
@@ -24,9 +24,7 @@ export async function freshserviceApiRequest(
body: IDataObject = {},
qs: IDataObject = {},
) {
const { apiKey, domain } = (await this.getCredentials(
'freshserviceApi',
)) as FreshserviceCredentials;
const { apiKey, domain } = await this.getCredentials<FreshserviceCredentials>('freshserviceApi');
const encodedApiKey = Buffer.from(`${apiKey}:X`).toString('base64');
const options: IRequestOptions = {