cleaning up

This commit is contained in:
lda committed 2026-04-14 01:28:21 +07:00
1 parent 42cdc720a3
commit 826a41ae64
12 files changed
+98 -175

No files matched your search

+1 -14
View File
@@ -39,7 +39,7 @@ export type AuditEvent = {
metadata: Record<string, unknown>;
};
export type CommandKind = "status" | "devs" | "leases" | "inventory" | "wake";
export type CommandKind = "devs" | "leases" | "inventory" | "wake";
export type EnrollTokenStatus = {
enroll_token: string;
@@ -127,19 +127,6 @@ function buildCommandPayload(kind: CommandKind, query: string): { command: Recor
if (kind === "devs") {
return { command: { kind: "devs", dev: null, up_only: false } };
}
if (kind === "status") {
return {
command: {
kind: "status",
query: query || null,
name: null,
ips: [],
devs: [],
nuds: [],
macs: [],
},
};
}
if (kind === "leases") {
return { command: { kind: "leases", include_state: true } };
}