Skip to content

Commit

Permalink
Change campaign status to draft on removing schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Jul 5, 2020
1 parent 64d4470 commit db032d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions queries.sql
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ WITH camp AS (
body=(CASE WHEN $5 != '' THEN $5 ELSE body END),
content_type=(CASE WHEN $6 != '' THEN $6::content_type ELSE content_type END),
send_at=(CASE WHEN $8 THEN $7::TIMESTAMP WITH TIME ZONE WHEN NOT $8 THEN NULL ELSE send_at END),
status=(CASE WHEN NOT $8 THEN 'draft' ELSE status END),
tags=(CASE WHEN ARRAY_LENGTH($9::VARCHAR(100)[], 1) > 0 THEN $9 ELSE tags END),
template_id=(CASE WHEN $10 != 0 THEN $10 ELSE template_id END),
updated_at=NOW()
Expand Down

0 comments on commit db032d3

Please sign in to comment.