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:
@@ -22,6 +22,6 @@ export class GoogleAnalyticsV2 implements INodeType {
|
||||
methods = { loadOptions, listSearch };
|
||||
|
||||
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||||
return router.call(this);
|
||||
return await router.call(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,6 +71,6 @@ describe('Test Google BigQuery V2, executeQuery', () => {
|
||||
};
|
||||
|
||||
for (const testData of tests) {
|
||||
test(testData.description, async () => testNode(testData, nodeTypes));
|
||||
test(testData.description, async () => await testNode(testData, nodeTypes));
|
||||
}
|
||||
});
|
||||
|
||||
@@ -78,6 +78,6 @@ describe('Test Google BigQuery V2, insert auto map', () => {
|
||||
};
|
||||
|
||||
for (const testData of tests) {
|
||||
test(testData.description, async () => testNode(testData, nodeTypes));
|
||||
test(testData.description, async () => await testNode(testData, nodeTypes));
|
||||
}
|
||||
});
|
||||
|
||||
@@ -75,6 +75,6 @@ describe('Test Google BigQuery V2, insert define manually', () => {
|
||||
};
|
||||
|
||||
for (const testData of tests) {
|
||||
test(testData.description, async () => testNode(testData, nodeTypes));
|
||||
test(testData.description, async () => await testNode(testData, nodeTypes));
|
||||
}
|
||||
});
|
||||
|
||||
@@ -23,6 +23,6 @@ export class GoogleBigQueryV2 implements INodeType {
|
||||
methods = { loadOptions, listSearch };
|
||||
|
||||
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||||
return router.call(this);
|
||||
return await router.call(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,6 @@ export class GoogleDriveV2 implements INodeType {
|
||||
methods = { listSearch };
|
||||
|
||||
async execute(this: IExecuteFunctions) {
|
||||
return router.call(this);
|
||||
return await router.call(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -103,5 +103,5 @@ export async function getGoogleAccessToken(
|
||||
json: true,
|
||||
};
|
||||
|
||||
return this.helpers.request(options);
|
||||
return await this.helpers.request(options);
|
||||
}
|
||||
|
||||
@@ -638,7 +638,7 @@ export async function replyToEmail(
|
||||
threadId,
|
||||
};
|
||||
|
||||
return googleApiRequest.call(this, 'POST', '/gmail/v1/users/me/messages/send', body, qs);
|
||||
return await googleApiRequest.call(this, 'POST', '/gmail/v1/users/me/messages/send', body, qs);
|
||||
}
|
||||
|
||||
export async function simplifyOutput(
|
||||
|
||||
@@ -281,7 +281,7 @@ export class GoogleSheet {
|
||||
keyRowIndex,
|
||||
usePathForKeyRow,
|
||||
);
|
||||
return this.appendData(range, data, valueInputMode);
|
||||
return await this.appendData(range, data, valueInputMode);
|
||||
}
|
||||
|
||||
getColumnWithOffset(startColumn: string, offset: number): string {
|
||||
@@ -456,7 +456,7 @@ export class GoogleSheet {
|
||||
}
|
||||
}
|
||||
|
||||
return this.batchUpdate(updateData, valueInputMode);
|
||||
return await this.batchUpdate(updateData, valueInputMode);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,6 +26,6 @@ export class GoogleSheetsV2 implements INodeType {
|
||||
};
|
||||
|
||||
async execute(this: IExecuteFunctions) {
|
||||
return router.call(this);
|
||||
return await router.call(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -401,7 +401,7 @@ export class GoogleSheet {
|
||||
columnNamesList,
|
||||
useAppend ? null : '',
|
||||
);
|
||||
return this.appendData(range, data, valueInputMode, lastRow, useAppend);
|
||||
return await this.appendData(range, data, valueInputMode, lastRow, useAppend);
|
||||
}
|
||||
|
||||
getColumnWithOffset(startColumn: string, offset: number): string {
|
||||
|
||||
Reference in New Issue
Block a user