mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-10 16:31:22 +08:00
Merge pull request #6674 from G-Chubinidze/gc_SCI_9562_v2
Implement Task Due Date Reminder notification [SCI-9562]
This commit is contained in:
commit
7367fd4fba
2 changed files with 8 additions and 6 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
module MyModules
|
||||||
class DueDateReminderJob < ApplicationJob
|
class DueDateReminderJob < ApplicationJob
|
||||||
def perform
|
def perform
|
||||||
my_modules = MyModule.approaching_due_dates
|
my_modules = MyModule.approaching_due_dates
|
||||||
|
|
@ -9,3 +10,4 @@ class DueDateReminderJob < ApplicationJob
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,6 @@ if ENV['ENABLE_FLUICS_SYNC'] == 'true'
|
||||||
end
|
end
|
||||||
|
|
||||||
scheduler.every '1h' do
|
scheduler.every '1h' do
|
||||||
DueDateReminderJob.perform_now
|
MyModules::DueDateReminderJob.perform_now
|
||||||
RepositoryItemDateReminderJob.perform_now
|
RepositoryItemDateReminderJob.perform_now
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue