Skip to content

Use service to clean sessions #27073

Use service to clean sessions

Use service to clean sessions #27073

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

See this annotation in the file changed.

@github-actions 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.