Skip to content

Commit

Permalink
Update fxa_events.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
tanfarming authored Jan 23, 2024
1 parent fce9926 commit f783a43
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/dash_web/fxa_events.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit f783a43

Please sign in to comment.