mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
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:
parent
81dfc15d1f
commit
5322c0e57b
@ -49,8 +49,8 @@ class Command(BaseCommand):
|
|||||||
instance_name="Plane Community Edition",
|
instance_name="Plane Community Edition",
|
||||||
instance_id=secrets.token_hex(12),
|
instance_id=secrets.token_hex(12),
|
||||||
license_key=None,
|
license_key=None,
|
||||||
api_key=secrets.token_hex(8),
|
current_version=payload.get("version"),
|
||||||
version=payload.get("version"),
|
latest_version=payload.get("version"),
|
||||||
last_checked_at=timezone.now(),
|
last_checked_at=timezone.now(),
|
||||||
user_count=payload.get("user_count", 0),
|
user_count=payload.get("user_count", 0),
|
||||||
)
|
)
|
||||||
|
4
packages/types/src/instance/base.d.ts
vendored
4
packages/types/src/instance/base.d.ts
vendored
@ -19,8 +19,8 @@ export interface IInstance {
|
|||||||
whitelist_emails: string | undefined;
|
whitelist_emails: string | undefined;
|
||||||
instance_id: string | undefined;
|
instance_id: string | undefined;
|
||||||
license_key: string | undefined;
|
license_key: string | undefined;
|
||||||
api_key: string | undefined;
|
current_version: string | undefined;
|
||||||
version: string | undefined;
|
latest_version: string | undefined;
|
||||||
last_checked_at: string | undefined;
|
last_checked_at: string | undefined;
|
||||||
namespace: string | undefined;
|
namespace: string | undefined;
|
||||||
is_telemetry_enabled: boolean;
|
is_telemetry_enabled: boolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user