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:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user