style: correct coding style with rubocop linter
This commit is contained in:
@@ -3,7 +3,7 @@ class CleanupExpiredDraftsJob < ApplicationJob
|
||||
|
||||
def perform
|
||||
expired_count = 0
|
||||
|
||||
|
||||
Ticket.expired_drafts.find_each do |ticket|
|
||||
Rails.logger.info "Expiring draft ticket #{ticket.id} for user #{ticket.user_id}"
|
||||
ticket.expire_if_overdue!
|
||||
@@ -12,4 +12,4 @@ class CleanupExpiredDraftsJob < ApplicationJob
|
||||
|
||||
Rails.logger.info "Expired #{expired_count} draft tickets" if expired_count > 0
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -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