mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Introduce overload for number-type node parameter (no-changelog) (#4644)
* 📘 Set up overloads * 📘 Add temporary assertion * 🔥 Remove inferrable number assertions * ✏️ Add ticket ref
This commit is contained in:
@@ -205,7 +205,7 @@ export class WooCommerce implements INodeType {
|
||||
qs,
|
||||
);
|
||||
} else {
|
||||
qs.per_page = this.getNodeParameter('limit', i) as number;
|
||||
qs.per_page = this.getNodeParameter('limit', i);
|
||||
responseData = await woocommerceApiRequest.call(this, 'GET', '/customers', {}, qs);
|
||||
}
|
||||
} else if (operation === 'update') {
|
||||
@@ -366,7 +366,7 @@ export class WooCommerce implements INodeType {
|
||||
qs,
|
||||
);
|
||||
} else {
|
||||
qs.per_page = this.getNodeParameter('limit', i) as number;
|
||||
qs.per_page = this.getNodeParameter('limit', i);
|
||||
responseData = await woocommerceApiRequest.call(this, 'GET', '/products', {}, qs);
|
||||
}
|
||||
}
|
||||
@@ -565,7 +565,7 @@ export class WooCommerce implements INodeType {
|
||||
if (returnAll === true) {
|
||||
responseData = await woocommerceApiRequestAllItems.call(this, 'GET', '/orders', {}, qs);
|
||||
} else {
|
||||
qs.per_page = this.getNodeParameter('limit', i) as number;
|
||||
qs.per_page = this.getNodeParameter('limit', i);
|
||||
responseData = await woocommerceApiRequest.call(this, 'GET', '/orders', {}, qs);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user