Use enum-generated scopes/queries for BulkImport
(#29975)
This commit is contained in:
parent
630572323f
commit
11e0049b08
6 changed files with 9 additions and 9 deletions
|
@ -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!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue