Fix re-submission of public form e-mails not registering

This commit is contained in:
Kailash Nadh 2021-04-15 21:53:36 +05:30
parent 07d8be5465
commit 708d0e0b00
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ SELECT id as subscriber_id,
WITH sub AS (
INSERT INTO subscribers (uuid, email, name, status, attribs)
VALUES($1, $2, $3, $4, $5)
ON CONFLICT(email) DO UPDATE SET updated_at=NOW()
returning id
),
listIDs AS (