Skip to content

Commit 44af061

Browse files
committed
Use feature availability function
1 parent b39fb57 commit 44af061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extra/lib/plausible_web/controllers/api/external_sites_controller.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ defmodule PlausibleWeb.Api.ExternalSitesController do
4040
teams:
4141
Enum.map(page.entries, fn team ->
4242
api_available? =
43-
Plausible.Billing.Feature.StatsAPI in Teams.Billing.allowed_features_for(team)
43+
Plausible.Billing.Feature.StatsAPI.check_availability(team) == :ok
4444

4545
%{
4646
id: team.identifier,

0 commit comments

Comments
 (0)