forked from shibao/cannery
fix bug in mailer
This commit is contained in:
parent
c1b04bd14c
commit
2f9c08b79f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user