Skip to content

Commit

Permalink
Merge pull request #6 from anantanandgupta/hotfix/manage-subscriber-l…
Browse files Browse the repository at this point in the history
…ists

fixed issue introduced in last release
  • Loading branch information
LucasSovre committed Mar 26, 2024
2 parents 7abcce6 + dfbf4d2 commit bbf345c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions nodes/Listmonk/businessOperations/subscribers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ export const subscriberOperations: INodeProperties[] = [
{
name: 'Manage Subscriber List',
value: 'manageSubscribersLists',
action: 'Add or remove multiple subscribers to and from given lists or mark them unsubscribed in list',
action: 'Manage subscriber list',
routing: {
request: {
method: 'PUT',
url: '/subscribers/lists',
body: '{{JSON.stringify({"ids":JSON.parse($parameter.subscriberIds), "action":$parameter.subscriptionAction, "target_list_ids":JSON.parse($parameter.listIds), "status":$parameter.subscriptionStatus })}}',
body: '={{JSON.stringify({"ids":JSON.parse($parameter.subscriberIDs), "action":$parameter.subscriptionAction, "target_list_ids":JSON.parse($parameter.listIDs), "status":$parameter.subscriptionStatus })}}',
encoding: 'json',
json: true,
},
Expand Down
7 changes: 2 additions & 5 deletions nodes/Listmonk/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,8 @@ export const listmonkOptions: INodeProperties[] = [
value: 'unsubscribe',
},
],
default: 'add', // The initially selected option
description: 'Subscriber status',
default: 'add',
displayOptions: {
// the resources and operations to display this element with
show: {
operation: ['manageSubscribersLists'],
},
Expand Down Expand Up @@ -372,10 +370,9 @@ export const listmonkOptions: INodeProperties[] = [
value: 'unsubscribed',
},
],
default: 'confirmed', // The initially selected option
default: 'confirmed',
description: 'Subscriber status',
displayOptions: {
// the resources and operations to display this element with
show: {
operation: ['manageSubscribersLists'],
},
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "n8n-nodes-listmonk",
"version": "1.0.6",
"version": "1.0.7",
"description": "A n8n node to interact with Listmonk app",
"keywords": [
"n8n-community-node-package",
Expand Down

0 comments on commit bbf345c

Please sign in to comment.