mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 19:51:01 +08:00
13 lines
308 B
Ruby
13 lines
308 B
Ruby
# frozen_string_literal: true
|
|
|
|
module MyModules
|
|
class DueDateReminderJob < ApplicationJob
|
|
def perform
|
|
my_modules = MyModule.uncomplete.approaching_due_dates
|
|
|
|
my_modules.each do |task|
|
|
TaskDueDateNotification.send_notifications({ my_module_id: task.id })
|
|
end
|
|
end
|
|
end
|
|
end
|