Skip to content

Commit 5a50ffb

Browse files
authoredMay 23, 2022
fix: order autosend contacts by campaign id first (#1235)
1 parent b568757 commit 5a50ffb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/server/tasks/queue-autosend-initials.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const queueAutoSendInitials: Task = async (payload: Payload, helpers) => {
4949
-- and graphile_worker.jobs.key = cc.id::text
5050
-- )
5151
-- ordering by campaign id and cell should be fastest since theres a compound key on them
52-
order by assignment_id nulls last, cc.campaign_id, cc.cell asc
52+
order by cc.campaign_id asc, assignment_id nulls first, cc.cell asc
5353
limit $1
5454
),
5555
assignments_upserted as (

0 commit comments

Comments
 (0)