Skip to content

Commit

Permalink
Make recents unspecified quicker
Browse files Browse the repository at this point in the history
  • Loading branch information
iHiD committed Dec 3, 2024
1 parent 1fa98bd commit d8aa65d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/mailshot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ def audience_for_bc_mid_seniors(_)

def audience_for_bc_unspecified_recent_90(_)
[
User::Data.where(seniority: nil).
where('user_data.last_visited_on >= ?', Time.current - 90.days).
User::Data.where('user_data.last_visited_on >= ?', Time.current - 90.days).
includes(user: :bootcamp_data),
lambda do |user_data|
user = user_data.user
return if user.seniority.present?
return if user.bootcamp_data&.paid?

user
Expand Down

0 comments on commit d8aa65d

Please sign in to comment.