mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 13:45:25 +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
|