diff --git a/VERSION b/VERSION index 546ac9bcd6..42572d8481 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.29.5 +1.29.5.1 diff --git a/app/jobs/my_modules/due_date_reminder_job.rb b/app/jobs/my_modules/due_date_reminder_job.rb index 0ea3fc5a06..839f4d07f6 100644 --- a/app/jobs/my_modules/due_date_reminder_job.rb +++ b/app/jobs/my_modules/due_date_reminder_job.rb @@ -3,7 +3,7 @@ module MyModules class DueDateReminderJob < ApplicationJob def perform - my_modules = MyModule.approaching_due_dates + my_modules = MyModule.uncomplete.approaching_due_dates my_modules.each do |task| TaskDueDateNotification.send_notifications({ my_module_id: task.id }) diff --git a/app/notifications/task_due_date_notification.rb b/app/notifications/task_due_date_notification.rb index 95100d8e51..c906549d18 100644 --- a/app/notifications/task_due_date_notification.rb +++ b/app/notifications/task_due_date_notification.rb @@ -17,6 +17,6 @@ def subject end after_deliver do - MyModule.find(params[:my_module_id]).update(due_date_notification_sent: true) + MyModule.find(params[:my_module_id]).update_column(:due_date_notification_sent, true) end end