Class: TestUserDashboard::DailyMaintenance
- Inherits:
-
Object
- Object
- TestUserDashboard::DailyMaintenance
- Includes:
- Sidekiq::Job
- Defined in:
- app/sidekiq/test_user_dashboard/daily_maintenance.rb
Constant Summary collapse
- TUD_ACCOUNTS_TABLE =
'tud_accounts'
Instance Method Summary collapse
Instance Method Details
#checkin_tud_accounts ⇒ Object (private)
15 16 17 18 19 20 21 22 23 |
# File 'app/sidekiq/test_user_dashboard/daily_maintenance.rb', line 15 def checkin_tud_accounts TestUserDashboard::TudAccount.where.not(checkout_time: nil).find_each do |account| account.update(checkout_time: nil) TestUserDashboard::AccountMetrics .new(account) .checkin(is_manual_checkin: true) end end |
#perform ⇒ Object
9 10 11 |
# File 'app/sidekiq/test_user_dashboard/daily_maintenance.rb', line 9 def perform checkin_tud_accounts end |