mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Replace some fallback values to match the value type (#1421)
This commit is contained in:
@@ -580,8 +580,8 @@ export class Chargebee implements INodeType {
|
||||
|
||||
requestMethod = 'POST';
|
||||
|
||||
const subscriptionId = this.getNodeParameter('subscriptionId', i, {}) as string;
|
||||
body.end_of_term = this.getNodeParameter('endOfTerm', i, {}) as boolean;
|
||||
const subscriptionId = this.getNodeParameter('subscriptionId', i, '') as string;
|
||||
body.end_of_term = this.getNodeParameter('endOfTerm', i, false) as boolean;
|
||||
|
||||
endpoint = `subscriptions/${subscriptionId.trim()}/cancel`;
|
||||
} else if (operation === 'delete') {
|
||||
@@ -591,7 +591,7 @@ export class Chargebee implements INodeType {
|
||||
|
||||
requestMethod = 'POST';
|
||||
|
||||
const subscriptionId = this.getNodeParameter('subscriptionId', i, {}) as string;
|
||||
const subscriptionId = this.getNodeParameter('subscriptionId', i, '') as string;
|
||||
|
||||
endpoint = `subscriptions/${subscriptionId.trim()}/delete`;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user