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

@@ -62,49 +62,49 @@ export class MicrosoftDynamicsCrm implements INodeType {
methods = {
loadOptions: {
async getAccountCategories(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
return getPicklistOptions.call(this, 'account', 'accountcategorycode');
return await getPicklistOptions.call(this, 'account', 'accountcategorycode');
},
async getAccountRatingCodes(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
return getPicklistOptions.call(this, 'account', 'accountratingcode');
return await getPicklistOptions.call(this, 'account', 'accountratingcode');
},
async getAddressTypes(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
return getPicklistOptions.call(this, 'account', 'address1_addresstypecode');
return await getPicklistOptions.call(this, 'account', 'address1_addresstypecode');
},
async getBusinessTypes(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
return getPicklistOptions.call(this, 'account', 'businesstypecode');
return await getPicklistOptions.call(this, 'account', 'businesstypecode');
},
async getCustomerSizeCodes(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
return getPicklistOptions.call(this, 'account', 'customersizecode');
return await getPicklistOptions.call(this, 'account', 'customersizecode');
},
async getCustomerTypeCodes(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
return getPicklistOptions.call(this, 'account', 'customertypecode');
return await getPicklistOptions.call(this, 'account', 'customertypecode');
},
async getIndustryCodes(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
return getPicklistOptions.call(this, 'account', 'industrycode');
return await getPicklistOptions.call(this, 'account', 'industrycode');
},
async getPaymentTermsCodes(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
return getPicklistOptions.call(this, 'account', 'paymenttermscode');
return await getPicklistOptions.call(this, 'account', 'paymenttermscode');
},
async getPreferredAppointmentDayCodes(
this: ILoadOptionsFunctions,
): Promise<INodePropertyOptions[]> {
return getPicklistOptions.call(this, 'account', 'preferredappointmentdaycode');
return await getPicklistOptions.call(this, 'account', 'preferredappointmentdaycode');
},
async getPreferredAppointmentTimeCodes(
this: ILoadOptionsFunctions,
): Promise<INodePropertyOptions[]> {
return getPicklistOptions.call(this, 'account', 'preferredappointmenttimecode');
return await getPicklistOptions.call(this, 'account', 'preferredappointmenttimecode');
},
async getPreferredContactMethodCodes(
this: ILoadOptionsFunctions,
): Promise<INodePropertyOptions[]> {
return getPicklistOptions.call(this, 'account', 'preferredcontactmethodcode');
return await getPicklistOptions.call(this, 'account', 'preferredcontactmethodcode');
},
async getShippingMethodCodes(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
return getPicklistOptions.call(this, 'account', 'shippingmethodcode');
return await getPicklistOptions.call(this, 'account', 'shippingmethodcode');
},
async getTerritoryCodes(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
return getPicklistOptions.call(this, 'account', 'territorycode');
return await getPicklistOptions.call(this, 'account', 'territorycode');
},
async getAccountFields(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const fields = await getEntityFields.call(this, 'account');