File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1010 },
1111 {
1212 "command" : " bundle exec rake funds:sync_least_recent" ,
13- "schedule" : " */30 * * * *"
13+ "schedule" : " 0 * * * *"
1414 },
1515 {
1616 "command" : " bundle exec rake funding_sources:update_project_allocation_funding_sources" ,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class Fund < ApplicationRecord
1515
1616
1717 def self . sync_least_recently_synced
18- Fund . where ( last_synced_at : nil ) . or ( Fund . where ( "last_synced_at < ?" , 1 . day . ago ) ) . order ( 'last_synced_at asc nulls first' ) . limit ( 10 ) . each do |fund |
18+ Fund . featured . where ( last_synced_at : nil ) . or ( Fund . where ( "last_synced_at < ?" , 1 . day . ago ) ) . order ( 'last_synced_at asc nulls first' ) . limit ( 10 ) . each do |fund |
1919 fund . sync_async
2020 end
2121 end
You can’t perform that action at this time.
0 commit comments