mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +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:
@@ -914,7 +914,7 @@ export class Nasa implements INodeType {
|
||||
}
|
||||
if (resource === 'asteroidNeoBrowse') {
|
||||
if (operation === 'getAll') {
|
||||
returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
if (returnAll === false) {
|
||||
qs.size = this.getNodeParameter('limit', 0) as number;
|
||||
@@ -1069,7 +1069,7 @@ export class Nasa implements INodeType {
|
||||
}
|
||||
|
||||
if (resource === 'astronomyPictureOfTheDay') {
|
||||
download = this.getNodeParameter('download', 0) as boolean;
|
||||
download = this.getNodeParameter('download', 0);
|
||||
|
||||
if (download === true) {
|
||||
const binaryProperty = this.getNodeParameter('binaryPropertyName', i) as string;
|
||||
|
||||
Reference in New Issue
Block a user