From 2f9c08b79fcd19aee4649ed1eb185f1540ad735c Mon Sep 17 00:00:00 2001 From: shibao Date: Wed, 16 Feb 2022 20:20:17 -0500 Subject: [PATCH] fix bug in mailer --- lib/cannery/mailer.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cannery/mailer.ex b/lib/cannery/mailer.ex index 3b6d865b..abc7b5aa 100644 --- a/lib/cannery/mailer.ex +++ b/lib/cannery/mailer.ex @@ -35,6 +35,6 @@ defmodule Cannery.Mailer do """ @spec deliver_update_email_instructions(User.t(), String.t()) :: Job.t() 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