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

@@ -212,93 +212,93 @@ export class ZohoCrm implements INodeType {
// standard fields - called from `makeGetAllFields`
async getAccountFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'account');
return await getFields.call(this, 'account');
},
async getContactFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'contact');
return await getFields.call(this, 'contact');
},
async getDealFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'deal');
return await getFields.call(this, 'deal');
},
async getInvoiceFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'invoice');
return await getFields.call(this, 'invoice');
},
async getLeadFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'lead');
return await getFields.call(this, 'lead');
},
async getProductFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'product');
return await getFields.call(this, 'product');
},
async getPurchaseOrderFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'purchase_order');
return await getFields.call(this, 'purchase_order');
},
async getVendorOrderFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'vendor');
return await getFields.call(this, 'vendor');
},
async getQuoteFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'quote');
return await getFields.call(this, 'quote');
},
async getSalesOrderFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'sales_order');
return await getFields.call(this, 'sales_order');
},
async getVendorFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'vendor');
return await getFields.call(this, 'vendor');
},
// custom fields
async getCustomAccountFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'account', { onlyCustom: true });
return await getFields.call(this, 'account', { onlyCustom: true });
},
async getCustomContactFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'contact', { onlyCustom: true });
return await getFields.call(this, 'contact', { onlyCustom: true });
},
async getCustomDealFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'deal', { onlyCustom: true });
return await getFields.call(this, 'deal', { onlyCustom: true });
},
async getCustomInvoiceFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'invoice', { onlyCustom: true });
return await getFields.call(this, 'invoice', { onlyCustom: true });
},
async getCustomLeadFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'lead', { onlyCustom: true });
return await getFields.call(this, 'lead', { onlyCustom: true });
},
async getCustomProductFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'product', { onlyCustom: true });
return await getFields.call(this, 'product', { onlyCustom: true });
},
async getCustomPurchaseOrderFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'purchase_order', { onlyCustom: true });
return await getFields.call(this, 'purchase_order', { onlyCustom: true });
},
async getCustomVendorOrderFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'vendor', { onlyCustom: true });
return await getFields.call(this, 'vendor', { onlyCustom: true });
},
async getCustomQuoteFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'quote', { onlyCustom: true });
return await getFields.call(this, 'quote', { onlyCustom: true });
},
async getCustomSalesOrderFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'sales_order', { onlyCustom: true });
return await getFields.call(this, 'sales_order', { onlyCustom: true });
},
async getCustomVendorFields(this: ILoadOptionsFunctions) {
return getFields.call(this, 'vendor', { onlyCustom: true });
return await getFields.call(this, 'vendor', { onlyCustom: true });
},
// ----------------------------------------
@@ -306,23 +306,23 @@ export class ZohoCrm implements INodeType {
// ----------------------------------------
async getAccountType(this: ILoadOptionsFunctions) {
return getPicklistOptions.call(this, 'account', 'Account_Type');
return await getPicklistOptions.call(this, 'account', 'Account_Type');
},
async getDealStage(this: ILoadOptionsFunctions) {
return getPicklistOptions.call(this, 'deal', 'Stage');
return await getPicklistOptions.call(this, 'deal', 'Stage');
},
async getPurchaseOrderStatus(this: ILoadOptionsFunctions) {
return getPicklistOptions.call(this, 'purchaseOrder', 'Status');
return await getPicklistOptions.call(this, 'purchaseOrder', 'Status');
},
async getSalesOrderStatus(this: ILoadOptionsFunctions) {
return getPicklistOptions.call(this, 'salesOrder', 'Status');
return await getPicklistOptions.call(this, 'salesOrder', 'Status');
},
async getQuoteStage(this: ILoadOptionsFunctions) {
return getPicklistOptions.call(this, 'quote', 'Quote_Stage');
return await getPicklistOptions.call(this, 'quote', 'Quote_Stage');
},
},
};