mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-05 07:03:51 +08:00
11 lines
260 B
Ruby
11 lines
260 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|