fix: instance register script (#4681)

* fix: instance register script

* dev: remove api key and add latest version and current version in types
This commit is contained in:
Nikhil 2024-06-03 12:44:40 +05:30 committed by GitHub
parent 81dfc15d1f
commit 5322c0e57b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -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),
)

View File

@ -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;