Skip to content

Bulk unsubscribe does not dispatch subscriber.unsubscribed #127

Open

Description

@JuansesDev

What happens

Only the single-subscriber status update dispatches the event. The bulk status action — reachable through POST /api/v1/projects/{id}/subscribers/bulk with action: "update_status" — updates rows without dispatching and without writing a suppression.

Where

  • backend/internal/service/subscriber.go:343-374 — dispatch on the single path.
  • backend/internal/service/subscriber.go:416-441 — bulk path.
  • backend/internal/handler/subscriber.go:336-343.

Impact

Bulk unsubscribes produce no webhook event, so downstream systems keep mailing.

Proposed fix

Dispatch per affected subscriber in the bulk path (together with the suppression write).

Acceptance

  • A bulk unsubscribe emits one event per affected subscriber.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions