mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Introduce overload for boolean-type node parameter (no-changelog) (#4647)
* 📘 Set up overloads * 📘 Add temporary assertion * 🔥 Remove inferrable boolean assertions * ⏪ Undo autoformatting
This commit is contained in:
@@ -264,7 +264,7 @@ export class Shopify implements INodeType {
|
||||
}
|
||||
//https://shopify.dev/docs/admin-api/rest/reference/orders/order#index-2020-04
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
if (options.fields) {
|
||||
qs.fields = options.fields as string;
|
||||
@@ -419,7 +419,7 @@ export class Shopify implements INodeType {
|
||||
{},
|
||||
) as IDataObject;
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
Object.assign(qs, additionalFields);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user