From 1d188db11fd75e7fd20ae1151260f96e87441702 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Tue, 2 Dec 2025 20:15:35 +0000 Subject: [PATCH] fix: Correct lastBackup TypeScript type from string to number The backend sends lastBackup as Unix milliseconds (int64), not as an ISO string. Update VM and Container interfaces to match the actual JSON payload. The getBackupInfo() function already handles both string and number types, so this is a type-safety fix that aligns types with reality. --- frontend-modern/src/types/api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend-modern/src/types/api.ts b/frontend-modern/src/types/api.ts index aaa464b..9a38ba0 100644 --- a/frontend-modern/src/types/api.ts +++ b/frontend-modern/src/types/api.ts @@ -92,7 +92,7 @@ export interface VM { diskWrite: number; uptime: number; template: boolean; - lastBackup: string; + lastBackup: number; tags: string[] | string | null; lock: string; lastSeen: string; @@ -122,7 +122,7 @@ export interface Container { diskWrite: number; uptime: number; template: boolean; - lastBackup: string; + lastBackup: number; tags: string[] | string | null; lock: string; lastSeen: string;