mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 21:24:54 +08:00
14 lines
349 B
Ruby
14 lines
349 B
Ruby
# frozen_string_literal: true
|
|
|
|
module MyModules
|
|
class DueDateReminderJob < ApplicationJob
|
|
def perform
|
|
NewRelic::Agent.ignore_transaction
|
|
my_modules = MyModule.uncomplete.approaching_due_dates
|
|
|
|
my_modules.each do |task|
|
|
TaskDueDateNotification.send_notifications({ my_module_id: task.id })
|
|
end
|
|
end
|
|
end
|
|
end
|