Fix pre-confirm status not working on subscriber update. Closes #1927.

This commit is contained in:
Kailash Nadh 2024-09-03 23:39:02 +05:30
parent 139267d57e
commit 51e3f1789b

View file

@ -179,7 +179,6 @@ INSERT INTO subscriber_lists (subscriber_id, list_id, status)
-- When subscriber is edited from the admin form, retain the status. Otherwise, a blocklisted
-- subscriber when being re-enabled, their subscription statuses change.
WHEN subscriber_lists.status = 'confirmed' THEN 'confirmed'
WHEN $9 = TRUE THEN subscriber_lists.status
ELSE $8::subscription_status
END
);