mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 05:34:53 +08:00
13 lines
297 B
Ruby
13 lines
297 B
Ruby
# frozen_string_literal: true
|
|
|
|
module MyModules
|
|
class DueDateReminderJob < ApplicationJob
|
|
def perform
|
|
my_modules = MyModule.approaching_due_dates
|
|
|
|
my_modules.each do |task|
|
|
TaskDueDateNotification.send_notifications({ my_module_id: task.id })
|
|
end
|
|
end
|
|
end
|
|
end
|