|
|
|
@ -60,7 +60,6 @@ class LicenseStatus(StrEnum):
|
|
|
|
class LicenseModel(BaseModel):
|
|
|
|
class LicenseModel(BaseModel):
|
|
|
|
status: LicenseStatus = LicenseStatus.NONE
|
|
|
|
status: LicenseStatus = LicenseStatus.NONE
|
|
|
|
expired_at: str = ""
|
|
|
|
expired_at: str = ""
|
|
|
|
product_id: str = ""
|
|
|
|
|
|
|
|
workspaces: LicenseLimitationModel = LicenseLimitationModel(enabled=False, size=0, limit=0)
|
|
|
|
workspaces: LicenseLimitationModel = LicenseLimitationModel(enabled=False, size=0, limit=0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -255,9 +254,6 @@ class FeatureService:
|
|
|
|
if "expiredAt" in license_info:
|
|
|
|
if "expiredAt" in license_info:
|
|
|
|
features.license.expired_at = license_info["expiredAt"]
|
|
|
|
features.license.expired_at = license_info["expiredAt"]
|
|
|
|
|
|
|
|
|
|
|
|
if "productId" in license_info:
|
|
|
|
|
|
|
|
features.license.product_id = license_info["productId"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if "workspaces" in license_info:
|
|
|
|
if "workspaces" in license_info:
|
|
|
|
features.license.workspaces.enabled = license_info["workspaces"]["enabled"]
|
|
|
|
features.license.workspaces.enabled = license_info["workspaces"]["enabled"]
|
|
|
|
features.license.workspaces.limit = license_info["workspaces"]["limit"]
|
|
|
|
features.license.workspaces.limit = license_info["workspaces"]["limit"]
|
|
|
|
|