Use enum-generated scopes/queries for BulkImport (#29975)

This commit is contained in:
Matt Jankowski 2024-04-18 06:13:35 -04:00 committed by GitHub
parent 630572323f
commit 11e0049b08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 9 additions and 9 deletions

View file

@ -9,7 +9,7 @@ class Vacuum::ImportsVacuum
private
def clean_unconfirmed_imports!
BulkImport.where(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!