mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +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:
@@ -277,10 +277,10 @@ export class Magento2 implements INodeType {
|
||||
async getFilterableCustomerAttributes(
|
||||
this: ILoadOptionsFunctions,
|
||||
): Promise<INodePropertyOptions[]> {
|
||||
return getProductAttributes.call(this, (attribute) => attribute.is_filterable);
|
||||
return await getProductAttributes.call(this, (attribute) => attribute.is_filterable);
|
||||
},
|
||||
async getProductAttributes(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||
return getProductAttributes.call(this);
|
||||
return await getProductAttributes.call(this);
|
||||
},
|
||||
// async getProductAttributesFields(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||
// return getProductAttributes.call(this, undefined, { name: '*', value: '*', description: 'All properties' });
|
||||
@@ -288,12 +288,15 @@ export class Magento2 implements INodeType {
|
||||
async getFilterableProductAttributes(
|
||||
this: ILoadOptionsFunctions,
|
||||
): Promise<INodePropertyOptions[]> {
|
||||
return getProductAttributes.call(this, (attribute) => attribute.is_searchable === '1');
|
||||
return await getProductAttributes.call(
|
||||
this,
|
||||
(attribute) => attribute.is_searchable === '1',
|
||||
);
|
||||
},
|
||||
async getSortableProductAttributes(
|
||||
this: ILoadOptionsFunctions,
|
||||
): Promise<INodePropertyOptions[]> {
|
||||
return getProductAttributes.call(this, (attribute) => attribute.used_for_sort_by);
|
||||
return await getProductAttributes.call(this, (attribute) => attribute.used_for_sort_by);
|
||||
},
|
||||
async getOrderAttributes(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||
return getOrderFields()
|
||||
|
||||
Reference in New Issue
Block a user