Fix develop
This commit is contained in:
parent
7c9e449c4b
commit
dcdf9e55a3
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue