mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
13 lines
296 B
Ruby
13 lines
296 B
Ruby
# frozen_string_literal: true
|
|
|
|
# This training will periodically check for trainings reservations to auto-cancel
|
|
class TrainingAutoCancelWorker
|
|
include Sidekiq::Worker
|
|
|
|
def perform
|
|
Training.find_each do |t|
|
|
Trainings::AutoCancelService.auto_cancel_reservations(t)
|
|
end
|
|
end
|
|
end
|