Skip to content

Commit

Permalink
hotfix for target time
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Tsang committed Sep 14, 2023
1 parent 80f9ef7 commit 771a48e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/request_issue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -423,13 +423,13 @@ def previous_request_issue
def sync_decision_issues!(target_time = Time.zone.now)
# add sleep timer for uat testing specific RequestIssues tied to certain EPE
if (end_product_establishment_id == 4142 || [16606, 16607, 16608, 16609, 16610].include?(id))
target_time = Time.zone.new(2023, 9, 14, 18, 00, 0)
target_time = Time.zone.new(2023, 9, 15, 14, 00, 0)
elsif (end_product_establishment_id == 4143 || [16611, 16612, 16613, 16614, 16615].include?(id))
target_time = Time.zone.new(2023, 9, 14, 18, 10, 0)
target_time = Time.zone.new(2023, 9, 15, 14, 10, 0)
elsif (end_product_establishment_id == 4144 || [16616, 16617, 16618, 16619, 16620].include?(id))
target_time = Time.zone.new(2023, 9, 14, 18, 20, 0)
target_time = Time.zone.new(2023, 9, 15, 14, 20, 0)
elsif (end_product_establishment_id == 4145 || [16621, 16622, 16623, 16624, 16625].include?(id))
target_time = Time.zone.new(2023, 9, 14, 18, 30, 0)
target_time = Time.zone.new(2023, 9, 15, 14, 30, 0)
end

sleep_until(target_time)
Expand Down

0 comments on commit 771a48e

Please sign in to comment.