Skip to content

Commit 26f823f

Browse files
authored
fix(Dr. Rai Reports): Bug in Scheduler (#5774)
**Story card:** [sc-XXXX](URL) ## Because The task to automatically update the Action Plans data was not working ## This addresses Fixing the way the task was scheduled in cron ## Test instructions n/a
1 parent df40128 commit 26f823f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

config/schedule.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,12 @@ def local(time)
8989
end
9090

9191
every :day, at: local("03:00 am"), roles: [:cron] do
92-
from = 1.month.ago.to_date.to_s
93-
to = Date.today.to_s
9492
%w[
9593
titration
9694
statins
9795
bp_fudging
9896
].each do |indicator|
99-
rake "dr_rai:populate_#{indicator}_data[#{from}, #{to}]"
97+
rake "dr_rai:populate_#{indicator}_data"
10098
end
10199
end
102100

0 commit comments

Comments
 (0)