mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +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:
@@ -434,7 +434,7 @@ export class Zammad implements INodeType {
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const limit = returnAll ? 0 : (this.getNodeParameter('limit', i) as number);
|
||||
const limit = returnAll ? 0 : this.getNodeParameter('limit', i);
|
||||
|
||||
responseData = await zammadApiRequestAllItems
|
||||
.call(this, 'GET', '/users/search', {}, qs, limit)
|
||||
@@ -542,7 +542,7 @@ export class Zammad implements INodeType {
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const limit = returnAll ? 0 : (this.getNodeParameter('limit', i) as number);
|
||||
const limit = returnAll ? 0 : this.getNodeParameter('limit', i);
|
||||
|
||||
responseData = await zammadApiRequestAllItems.call(
|
||||
this,
|
||||
@@ -641,7 +641,7 @@ export class Zammad implements INodeType {
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const limit = returnAll ? 0 : (this.getNodeParameter('limit', i) as number);
|
||||
const limit = returnAll ? 0 : this.getNodeParameter('limit', i);
|
||||
|
||||
responseData = await zammadApiRequestAllItems.call(
|
||||
this,
|
||||
@@ -732,7 +732,7 @@ export class Zammad implements INodeType {
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const limit = returnAll ? 0 : (this.getNodeParameter('limit', i) as number);
|
||||
const limit = returnAll ? 0 : this.getNodeParameter('limit', i);
|
||||
|
||||
responseData = await zammadApiRequestAllItems.call(
|
||||
this,
|
||||
|
||||
Reference in New Issue
Block a user