fix vanishing attachments in campaign in more the one campaigns setup (#1936)

This commit is contained in:
zevszym 2024-07-17 07:12:51 +02:00 committed by GitHub
parent b4294c1eea
commit b38f1562ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -827,7 +827,7 @@ clists AS (
),
med AS (
DELETE FROM campaign_media WHERE campaign_id = $1
AND media_id IS NULL or NOT(media_id = ANY($19)) RETURNING media_id
AND ( media_id IS NULL or NOT(media_id = ANY($19))) RETURNING media_id
),
medi AS (
INSERT INTO campaign_media (campaign_id, media_id, filename)