Fix re-submission of public form e-mails not registering
This commit is contained in:
parent
07d8be5465
commit
708d0e0b00
|
@ -58,6 +58,7 @@ SELECT id as subscriber_id,
|
||||||
WITH sub AS (
|
WITH sub AS (
|
||||||
INSERT INTO subscribers (uuid, email, name, status, attribs)
|
INSERT INTO subscribers (uuid, email, name, status, attribs)
|
||||||
VALUES($1, $2, $3, $4, $5)
|
VALUES($1, $2, $3, $4, $5)
|
||||||
|
ON CONFLICT(email) DO UPDATE SET updated_at=NOW()
|
||||||
returning id
|
returning id
|
||||||
),
|
),
|
||||||
listIDs AS (
|
listIDs AS (
|
||||||
|
|
Loading…
Reference in New Issue