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:
Tomi Turtiainen
2024-01-17 17:08:50 +02:00
committed by GitHub
parent 2eb829a6b4
commit 9a1cc56806
369 changed files with 1041 additions and 928 deletions

View File

@@ -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);
}
}

View File

@@ -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));
}
});

View File

@@ -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));
}
});

View File

@@ -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));
}
});

View File

@@ -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);
}
}

View File

@@ -22,6 +22,6 @@ export class GoogleDriveV2 implements INodeType {
methods = { listSearch };
async execute(this: IExecuteFunctions) {
return router.call(this);
return await router.call(this);
}
}

View File

@@ -103,5 +103,5 @@ export async function getGoogleAccessToken(
json: true,
};
return this.helpers.request(options);
return await this.helpers.request(options);
}

View File

@@ -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(

View File

@@ -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);
}
/**

View File

@@ -26,6 +26,6 @@ export class GoogleSheetsV2 implements INodeType {
};
async execute(this: IExecuteFunctions) {
return router.call(this);
return await router.call(this);
}
}

View File

@@ -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 {