From f783a43e8eecfb03e2a021f2b8e66286af19d04b Mon Sep 17 00:00:00 2001 From: Geng Tan Date: Mon, 22 Jan 2024 20:04:49 -0500 Subject: [PATCH] Update fxa_events.ex --- lib/dash_web/fxa_events.ex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/dash_web/fxa_events.ex b/lib/dash_web/fxa_events.ex index eb56e69b..48d25fdb 100644 --- a/lib/dash_web/fxa_events.ex +++ b/lib/dash_web/fxa_events.ex @@ -80,7 +80,7 @@ defmodule DashWeb.FxaEvents do "isActive" => is_active, "changeTime" => milliseconds }) do - if capabilities not in [["managed-hubs"], ["hubs-professional"]] do + if capabilities not in [["managed-hubs"], ["hubs-professional"], ["hubs-business"]] do raise "unknown capabilities for subscription changed event: #{Enum.join(capabilities, ", ")}" end @@ -102,6 +102,9 @@ defmodule DashWeb.FxaEvents do with {:error, reason} <- Dash.subscribe_to_professional_plan(account, datetime) do Logger.warning("could not subscribe to professional plan for reason: #{reason}") end + + capabilities === ["hubs-business"] -> + Logger.warning("capabilities === hubs-business requested but not yet coded") end # We expire the cookie on every subscription changed event because the auth server puts subscription information