fix(license): remove unlimited flag, device limit must always be a number

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jason Staack
2026-03-19 22:32:39 -05:00
parent fdc8d9cb68
commit 4092806fbc
3 changed files with 3 additions and 3 deletions

View File

@@ -136,7 +136,7 @@ class Settings(BaseSettings):
CONFIG_RETENTION_DAYS: int = 90
# Licensing — BSL 1.1 free tier allows up to 250 devices.
# Commercial license required above this limit. Set to 0 for unlimited.
# Commercial license required above this limit.
LICENSE_DEVICES: int = 250
# App settings

View File

@@ -194,6 +194,6 @@ async def get_license_status():
return {
"licensed_devices": limit,
"actual_devices": device_count,
"over_limit": limit > 0 and device_count > limit,
"over_limit": device_count > limit,
"tier": "commercial" if limit > 250 else "free",
}