scinote-web/app/jobs/my_modules/due_date_reminder_job.rb

14 lines
308 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2023-11-21 14:59:16 +08:00
module MyModules
class DueDateReminderJob < ApplicationJob
def perform
my_modules = MyModule.uncomplete.approaching_due_dates
2023-11-21 14:59:16 +08:00
my_modules.each do |task|
TaskDueDateNotification.send_notifications({ my_module_id: task.id })
end
end
end
end