#4242 - CheckRentalsJob: undefined method `number' for nil

A NoMethodError occurred in background at 2025-10-15 14:21:32 UTC :

 undefined method `number' for nil
 /var/www/bikelink/app/jobs/check_rentals_job.rb:10:in `block in perform'

-------------------------------
Backtrace:
-------------------------------

 /var/www/bikelink/app/jobs/check_rentals_job.rb:10:in `block in perform'
 /var/www/bikelink/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/relation/batches.rb:82:in `each'
 /var/www/bikelink/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/relation/batches.rb:82:in `block in find_each'
 /var/www/bikelink/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/relation/batches.rb:158:in `block in find_in_batches'
 /var/www/bikelink/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/relation/batches.rb:402:in `block in batch_on_unloaded_relation'
 <internal:kernel>:187:in `loop'
.
.
.

-------------------------------
Data:
-------------------------------

 * data: {:job=>"CheckRentalsJob",
  :job_id=>"1307c2bd-d1f9-49c3-86af-ac59c5d4ebb3",
  :queue_name=>"rental_expiration",
  :arguments=>[],
  :scheduled_at=>nil,
  :timezone=>"UTC",
  :priority=>nil,
  :executions=>1,
  :exception_executions=>{}}
Znovu načítať