2
0

Fix Rails/WhereRange cop (#30343)

This commit is contained in:
Matt Jankowski
2024-05-20 05:37:36 -04:00
committed by GitHub
parent 70608f824e
commit def6b686ff
10 changed files with 15 additions and 15 deletions

View File

@@ -9,10 +9,10 @@ class Vacuum::ImportsVacuum
private
def clean_unconfirmed_imports!
BulkImport.state_unconfirmed.where('created_at <= ?', 10.minutes.ago).reorder(nil).in_batches.delete_all
BulkImport.state_unconfirmed.where(created_at: ..10.minutes.ago).reorder(nil).in_batches.delete_all
end
def clean_old_imports!
BulkImport.where('created_at <= ?', 1.week.ago).reorder(nil).in_batches.delete_all
BulkImport.where(created_at: ..1.week.ago).reorder(nil).in_batches.delete_all
end
end