Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Friends don't let friends overflow integers (#5194)

hq130560364aad0
diff --git a/lib/plausible/billing/enterprise_plan_admin.ex b/lib/plausible/billing/enterprise_plan_admin.ex
index b8ed3fbe3d..77d3ee99b8 100644
--- a/lib/plausible/billing/enterprise_plan_admin.ex
+++ b/lib/plausible/billing/enterprise_plan_admin.ex
@@ -71,7 +71,7 @@ defmodule Plausible.Billing.EnterprisePlanAdmin do
def create_changeset(schema, attrs) do
attrs = sanitize_attrs(attrs)
- Plausible.Billing.EnterprisePlan.changeset(struct(schema, %{}), attrs)
+ Plausible.Billing.EnterprisePlan.changeset(struct(schema, site_limit: 10_000), attrs)
end
def update_changeset(enterprise_plan, attrs) do