mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)
This commit is contained in:
@@ -23,6 +23,12 @@ interface IHaloPSATokens {
|
||||
id_token: string;
|
||||
}
|
||||
|
||||
function getAuthUrl(credentials: IDataObject) {
|
||||
return credentials.hostingType === 'on-premise'
|
||||
? `${credentials.appUrl}/auth/token`
|
||||
: `${credentials.authUrl}/token?tenant=${credentials.tenant}`;
|
||||
}
|
||||
|
||||
// API Requests ---------------------------------------------------------------------
|
||||
|
||||
export async function getAccessTokens(
|
||||
@@ -184,11 +190,6 @@ export async function haloPSAApiRequestAllItems(
|
||||
}
|
||||
|
||||
// Utilities ------------------------------------------------------------------------
|
||||
function getAuthUrl(credentials: IDataObject) {
|
||||
return credentials.hostingType === 'on-premise'
|
||||
? `${credentials.appUrl}/auth/token`
|
||||
: `${credentials.authUrl}/token?tenant=${credentials.tenant}`;
|
||||
}
|
||||
|
||||
export function simplifyHaloPSAGetOutput(
|
||||
response: IDataObject[],
|
||||
|
||||
Reference in New Issue
Block a user