diff --git a/apiserver/plane/license/management/commands/register_instance.py b/apiserver/plane/license/management/commands/register_instance.py index b5cc8a60d..42676bb72 100644 --- a/apiserver/plane/license/management/commands/register_instance.py +++ b/apiserver/plane/license/management/commands/register_instance.py @@ -49,8 +49,8 @@ class Command(BaseCommand): instance_name="Plane Community Edition", instance_id=secrets.token_hex(12), license_key=None, - api_key=secrets.token_hex(8), - version=payload.get("version"), + current_version=payload.get("version"), + latest_version=payload.get("version"), last_checked_at=timezone.now(), user_count=payload.get("user_count", 0), ) diff --git a/packages/types/src/instance/base.d.ts b/packages/types/src/instance/base.d.ts index d51978c06..53804dec3 100644 --- a/packages/types/src/instance/base.d.ts +++ b/packages/types/src/instance/base.d.ts @@ -19,8 +19,8 @@ export interface IInstance { whitelist_emails: string | undefined; instance_id: string | undefined; license_key: string | undefined; - api_key: string | undefined; - version: string | undefined; + current_version: string | undefined; + latest_version: string | undefined; last_checked_at: string | undefined; namespace: string | undefined; is_telemetry_enabled: boolean;