Fix develop

This commit is contained in:
Seth Call 2025-06-14 01:14:35 -05:00
parent 7c9e449c4b
commit dcdf9e55a3
1 changed files with 3 additions and 3 deletions

View File

@ -31,15 +31,15 @@ module JamRuby
User.where("users.first_certified_gear_at IS NULL")
end
def self.reminder1_users(cutoff)
def self.reminder1_users(cutoff_date)
GearSetupReminder.prospect_users.where("users.created_at < ? AND users.created_at > ? AND users.gear_setup_reminder1_sent_at IS NULL", 1.day.ago, cutoff_date)
end
def self.reminder2_users(cutoff)
def self.reminder2_users(cutoff_date)
GearSetupReminder.prospect_users.where("users.created_at < ? AND users.created_at > ? AND users.gear_setup_reminder1_sent_at IS NOT NULL AND users.gear_setup_reminder2_sent_at IS NULL", 3.days.ago, cutoff_date)
end
def self.reminder3_users(cutoff)
def self.reminder3_users(cutoff_date)
GearSetupReminder.prospect_users.where("users.created_at < ? AND users.created_at > ? AND users.gear_setup_reminder2_sent_at IS NOT NULL AND users.gear_setup_reminder3_sent_at IS NULL", 5.days.ago, cutoff_date)
end