mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix: Set '@typescript-eslint/return-await' rule to 'always' for node code (no-changelog) (#8363)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -10,6 +10,6 @@ export class TheHiveProject implements INodeType {
|
||||
methods = { loadOptions, listSearch, resourceMapping };
|
||||
|
||||
async execute(this: IExecuteFunctions) {
|
||||
return router.call(this);
|
||||
return await router.call(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,5 +76,5 @@ export async function router(this: IExecuteFunctions): Promise<INodeExecutionDat
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
return this.prepareOutputData(returnData);
|
||||
return await this.prepareOutputData(returnData);
|
||||
}
|
||||
|
||||
@@ -62,7 +62,15 @@ export async function caseSearch(
|
||||
filter?: string,
|
||||
paginationToken?: string,
|
||||
): Promise<INodeListSearchResult> {
|
||||
return listResource.call(this, 'listCase', 'title', 'title', 'cases', filter, paginationToken);
|
||||
return await listResource.call(
|
||||
this,
|
||||
'listCase',
|
||||
'title',
|
||||
'title',
|
||||
'cases',
|
||||
filter,
|
||||
paginationToken,
|
||||
);
|
||||
}
|
||||
|
||||
export async function commentSearch(
|
||||
@@ -70,7 +78,7 @@ export async function commentSearch(
|
||||
filter?: string,
|
||||
paginationToken?: string,
|
||||
): Promise<INodeListSearchResult> {
|
||||
return listResource.call(
|
||||
return await listResource.call(
|
||||
this,
|
||||
'listComment',
|
||||
'message',
|
||||
@@ -86,7 +94,15 @@ export async function alertSearch(
|
||||
filter?: string,
|
||||
paginationToken?: string,
|
||||
): Promise<INodeListSearchResult> {
|
||||
return listResource.call(this, 'listAlert', 'title', 'title', 'alerts', filter, paginationToken);
|
||||
return await listResource.call(
|
||||
this,
|
||||
'listAlert',
|
||||
'title',
|
||||
'title',
|
||||
'alerts',
|
||||
filter,
|
||||
paginationToken,
|
||||
);
|
||||
}
|
||||
|
||||
export async function taskSearch(
|
||||
@@ -94,7 +110,15 @@ export async function taskSearch(
|
||||
filter?: string,
|
||||
paginationToken?: string,
|
||||
): Promise<INodeListSearchResult> {
|
||||
return listResource.call(this, 'listTask', 'title', 'title', undefined, filter, paginationToken);
|
||||
return await listResource.call(
|
||||
this,
|
||||
'listTask',
|
||||
'title',
|
||||
'title',
|
||||
undefined,
|
||||
filter,
|
||||
paginationToken,
|
||||
);
|
||||
}
|
||||
|
||||
export async function pageSearch(
|
||||
@@ -171,7 +195,7 @@ export async function logSearch(
|
||||
filter?: string,
|
||||
paginationToken?: string,
|
||||
): Promise<INodeListSearchResult> {
|
||||
return listResource.call(
|
||||
return await listResource.call(
|
||||
this,
|
||||
'listLog',
|
||||
'message',
|
||||
|
||||
@@ -38,5 +38,5 @@ export async function theHiveApiRequest(
|
||||
if (Object.keys(query).length === 0) {
|
||||
delete options.qs;
|
||||
}
|
||||
return this.helpers.requestWithAuthentication.call(this, 'theHiveProjectApi', options);
|
||||
return await this.helpers.requestWithAuthentication.call(this, 'theHiveProjectApi', options);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user