mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
n8n-3867-progressively-apply-prettier-to-all (#3873)
* 🔨 formatting nodes with prettier
This commit is contained in:
@@ -1,16 +1,8 @@
|
||||
import {
|
||||
IExecuteFunctions,
|
||||
} from 'n8n-core';
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
|
||||
import {
|
||||
IDataObject,
|
||||
NodeApiError,
|
||||
NodeOperationError,
|
||||
} from 'n8n-workflow';
|
||||
import { IDataObject, NodeApiError, NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
OptionsWithUri,
|
||||
} from 'request';
|
||||
import { OptionsWithUri } from 'request';
|
||||
|
||||
export async function msGraphSecurityApiRequest(
|
||||
this: IExecuteFunctions,
|
||||
@@ -24,10 +16,10 @@ export async function msGraphSecurityApiRequest(
|
||||
oauthTokenData: {
|
||||
access_token, // tslint:disable-line variable-name
|
||||
},
|
||||
} = await this.getCredentials('microsoftGraphSecurityOAuth2Api') as {
|
||||
} = (await this.getCredentials('microsoftGraphSecurityOAuth2Api')) as {
|
||||
oauthTokenData: {
|
||||
access_token: string;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
const options: OptionsWithUri = {
|
||||
@@ -72,7 +64,8 @@ export async function msGraphSecurityApiRequest(
|
||||
}
|
||||
|
||||
if (['Invalid filter clause', 'Invalid ODATA query filter'].includes(nestedMessage)) {
|
||||
error.error.error.message += ' - Please check that your query parameter syntax is correct: https://docs.microsoft.com/en-us/graph/query-parameters#filter-parameter';
|
||||
error.error.error.message +=
|
||||
' - Please check that your query parameter syntax is correct: https://docs.microsoft.com/en-us/graph/query-parameters#filter-parameter';
|
||||
}
|
||||
|
||||
throw new NodeApiError(this.getNode(), error);
|
||||
|
||||
Reference in New Issue
Block a user