style: correct coding style with rubocop linter
This commit is contained in:
@@ -4,9 +4,9 @@ class ExpiredOrdersCleanupJob < ApplicationJob
|
||||
def perform
|
||||
# Find and expire all draft orders that have passed their expiry time
|
||||
expired_orders = Order.expired_drafts
|
||||
|
||||
|
||||
Rails.logger.info "Found #{expired_orders.count} expired orders to process"
|
||||
|
||||
|
||||
expired_orders.find_each do |order|
|
||||
begin
|
||||
order.expire_if_overdue!
|
||||
@@ -17,7 +17,7 @@ class ExpiredOrdersCleanupJob < ApplicationJob
|
||||
next
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Rails.logger.info "Completed expired orders cleanup job"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user