Changed on PR comment

This commit is contained in:
thejaswinipathi 2020-04-22 14:25:42 +05:30 committed by GitHub
parent 56122c0bfe
commit c93ba78938
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ INSERT INTO subscriber_lists (subscriber_id, list_id, status)
(CASE WHEN $4='blacklisted' THEN 'unsubscribed'::subscription_status ELSE 'unconfirmed' END) (CASE WHEN $4='blacklisted' THEN 'unsubscribed'::subscription_status ELSE 'unconfirmed' END)
) )
ON CONFLICT (subscriber_id, list_id) DO UPDATE ON CONFLICT (subscriber_id, list_id) DO UPDATE
SET status = (CASE WHEN $4='blacklisted' THEN 'unsubscribed'::subscription_status ELSE 'unconfirmed' END); SET status = (CASE WHEN $4='blacklisted' THEN 'unsubscribed'::subscription_status ELSE subscriber_lists.status END);
-- name: delete-subscribers -- name: delete-subscribers
-- Delete one or more subscribers by ID or UUID. -- Delete one or more subscribers by ID or UUID.