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:
@@ -161,7 +161,7 @@ export class UptimeRobot implements INodeType {
|
||||
}
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
|
||||
body = {
|
||||
@@ -250,7 +250,7 @@ export class UptimeRobot implements INodeType {
|
||||
responseData = responseData.alert_contacts;
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
body = {
|
||||
...(this.getNodeParameter('filters', i) as IDataObject),
|
||||
@@ -327,7 +327,7 @@ export class UptimeRobot implements INodeType {
|
||||
responseData = responseData.mwindows;
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
body = {
|
||||
...(this.getNodeParameter('filters', i) as IDataObject),
|
||||
@@ -391,7 +391,7 @@ export class UptimeRobot implements INodeType {
|
||||
responseData = responseData.psps;
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
body = {
|
||||
...(this.getNodeParameter('filters', i) as IDataObject),
|
||||
|
||||
Reference in New Issue
Block a user