diff options
Diffstat (limited to 'app/models/concerns/packages/destructible.rb')
-rw-r--r-- | app/models/concerns/packages/destructible.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/packages/destructible.rb b/app/models/concerns/packages/destructible.rb index a3b7d8580c1..647c63b7f60 100644 --- a/app/models/concerns/packages/destructible.rb +++ b/app/models/concerns/packages/destructible.rb @@ -5,7 +5,7 @@ module Packages extend ActiveSupport::Concern class_methods do - def next_pending_destruction(order_by: nil) + def next_pending_destruction(order_by:) set = pending_destruction.limit(1).lock('FOR UPDATE SKIP LOCKED') set = set.order(order_by) if order_by set.take |