Skip to content

Commit

Permalink
Tweak query to fetch IVR calls to retry to match new index
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Aug 10, 2021
1 parent 10924b0 commit 9de9392
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/models/channel_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ FROM
LEFT OUTER JOIN flows_flowstart_connections fsc ON cc.id = fsc.channelconnection_id
WHERE
cc.connection_type = 'V' AND
next_attempt < NOW() AND
(cc.status = 'E' OR cc.status = 'Q')
cc.status IN ('Q', 'N', 'B', 'E') AND
next_attempt < NOW()
ORDER BY
cc.next_attempt ASC
LIMIT
Expand Down

0 comments on commit 9de9392

Please sign in to comment.