Use service to clean sessions #17383
Merged
GitHub Actions / rubocop
failed
Dec 8, 2024 in 0s
reviewdog [rubocop] report
reported by reviewdog 🐶
Findings (1)
app/services/sessions/clear_old_sessions_service.rb|35 col 45| Use where(updated_at: ...days_ago.days.ago)
instead of manually constructing SQL.
Filtered Findings (0)
Annotations
Check notice on line 35 in app/services/sessions/clear_old_sessions_service.rb
github-actions / rubocop
[rubocop] app/services/sessions/clear_old_sessions_service.rb#L35 <Rails/WhereRange>
Use `where(updated_at: ...days_ago.days.ago)` instead of manually constructing SQL.
Raw output
app/services/sessions/clear_old_sessions_service.rb:35:45: C: Rails/WhereRange: Use `where(updated_at: ...days_ago.days.ago)` instead of manually constructing SQL.
Loading