From 8fa1d60ff0b8cf54e6ad507d19aa83040b4cc193 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Mon, 28 Feb 2022 15:33:47 -0600 Subject: [PATCH] Send cancellation email safely --- lib/plausible/billing/billing.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plausible/billing/billing.ex b/lib/plausible/billing/billing.ex index e8a5ffc58..6d43d7032 100644 --- a/lib/plausible/billing/billing.ex +++ b/lib/plausible/billing/billing.ex @@ -54,7 +54,7 @@ defmodule Plausible.Billing do case Repo.update(changeset) do {:ok, updated} -> PlausibleWeb.Email.cancellation_email(subscription.user) - |> Plausible.Mailer.send_email() + |> Plausible.Mailer.send_email_safe() {:ok, updated}