Skip to content

Fix Add to List automation node: write status 'active' instead of invalid 'subscribed'#377

Open
sohviktor wants to merge 1 commit into
Notifuse:mainfrom
sohviktor:fix/addtolist-active-status
Open

Fix Add to List automation node: write status 'active' instead of invalid 'subscribed'#377
sohviktor wants to merge 1 commit into
Notifuse:mainfrom
sohviktor:fix/addtolist-active-status

Conversation

@sohviktor

Copy link
Copy Markdown

What

The Add to List automation node's config form sends status: 'subscribed', but the backend only accepts 'active' or 'pending'. So the node fails at execution with invalid status: subscribed and the contact's journey silently ends (the node shows Completed: 0). Full details in #376.

This maps the Subscribed option to the canonical backend value 'active'.

Change

console/src/components/automations/config/AddToListConfigForm.tsx:

  • STATUS_OPTIONS: { label: t``Subscribed``, value: 'subscribed' }value: 'active'
  • handleStatusChange param type: 'subscribed' | 'pending''active' | 'pending'
  • default: config.status || 'subscribed'config.status || 'active'

This also makes the form consistent with the existing AddToListNodeConfig type (console/src/services/api/automation.ts), which already declares status: 'active' | 'pending'.

Result

Selecting Subscribed now writes active, which passes AddToListNodeConfig.Validate() and the node completes (contact added to the list as an active subscriber).

Fixes #376

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automation "Add to List" node sends invalid status subscribed; backend rejects it (contact journey fails silently)

1 participant