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

15 lines
349 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
2023-11-21 14:59:16 +08:00
module MyModules
class DueDateReminderJob < ApplicationJob
def perform
NewRelic::Agent.ignore_transaction
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