Limits weekly email entries
this limits number of musician to be listed in weekly email to be 20
This commit is contained in:
parent
529d3fc891
commit
100e14cad0
|
|
@ -414,7 +414,7 @@ module JamRuby
|
|||
|
||||
mail(:to => user.email, :subject => EmailNewMusicianMatch.subject) do |format|
|
||||
format.text
|
||||
#format.html { render layout: "user_mailer_beta" }
|
||||
format.html { render layout: "user_mailer_beta" }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ module JamRuby
|
|||
true, true, 7.days.ago, 6.days.ago).where.not(id: email_sending.sent_user_ids).order("
|
||||
CASE WHEN users.email IN ('#{PRIORITY_RECIPIENTS.map {|str| "\"#{str}\""}.join(',')}')
|
||||
THEN 0 ELSE 1 END, last_active_at DESC").select("users.*,
|
||||
GREATEST(updated_at, last_jam_updated_at) AS last_active_at")
|
||||
GREATEST(updated_at, last_jam_updated_at) AS last_active_at").limit(20)
|
||||
|
||||
AdminMailer.ugly({to: APP_CONFIG.user_match_monitoring_email,
|
||||
subject:"Weekly user match email sending job started.",
|
||||
|
|
|
|||
Loading…
Reference in New Issue