fix bug in mailer

This commit is contained in:
shibao 2022-02-16 20:20:17 -05:00
parent c1b04bd14c
commit 2f9c08b79f

View File

@ -35,6 +35,6 @@ defmodule Cannery.Mailer do
""" """
@spec deliver_update_email_instructions(User.t(), String.t()) :: Job.t() @spec deliver_update_email_instructions(User.t(), String.t()) :: Job.t()
def deliver_update_email_instructions(%User{id: user_id}, url) do def deliver_update_email_instructions(%User{id: user_id}, url) do
%{email: :update, user_id: user_id, attrs: %{url: url}} |> EmailWorker.new() |> Oban.insert!() %{email: :update_email, user_id: user_id, attrs: %{url: url}} |> EmailWorker.new() |> Oban.insert!()
end end
end end