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

16 lines
329 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2023-11-21 14:59:16 +08:00
module MyModules
class DueDateReminderJob < ApplicationJob
newrelic_ignore
2023-11-21 14:59:16 +08:00
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