DEV: Fix REMINDER_BUFFER_MINUTES const reassignment warning (#506)

Without ||=, ruby warns the const is being reassigned all the time.
This commit is contained in:
Martin Brennan 2023-08-31 12:51:51 +10:00 committed by GitHub
parent d28c06a973
commit 7c18124a32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,8 @@
module Jobs
class EnqueueReminders < ::Jobs::Scheduled
REMINDER_BUFFER_MINUTES ||= 120
every 1.day
def execute(_args)
@ -20,8 +22,6 @@ module Jobs
Group.assign_allowed_groups.pluck(:id).join(",")
end
REMINDER_BUFFER_MINUTES = 120
def user_ids
global_frequency = SiteSetting.remind_assigns_frequency
frequency =