Make subscriber fetching for previews random
This commit is contained in:
parent
6a1ee77dcf
commit
87873d0d33
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ LEFT JOIN subscriber_lists ON (subscribers.id = subscriber_lists.subscriber_id A
|
|||
WHERE subscriber_lists.list_id=ANY(
|
||||
SELECT list_id FROM campaign_lists where campaign_id=$1 AND list_id IS NOT NULL
|
||||
)
|
||||
LIMIT 1;
|
||||
ORDER BY RANDOM() LIMIT 1;
|
||||
|
||||
-- name: update-campaign
|
||||
WITH camp AS (
|
||||
|
|
Loading…
Reference in a new issue