Skip to content

Commit

Permalink
Merge pull request #3971 from santiment/fix-email-vars
Browse files Browse the repository at this point in the history
Fix email vars
  • Loading branch information
tspenov authored Nov 3, 2023
2 parents b3da67f + 2db77cc commit fc42d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sanbase/email/template_mailer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defmodule Sanbase.TemplateMailer do

def send(rcpt_email, template_slug, vars) do
template = Sanbase.Email.Template.templates()[template_slug]
Map.put(vars, :current_year, Date.utc_today().year())
vars = Map.put(vars, :current_year, Date.utc_today().year())

if template do
subject =
Expand Down

0 comments on commit fc42d03

Please sign in to comment.