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.
This commit is contained in:
rcourtman 2025-12-02 20:15:35 +00:00
parent 1a9d15b1c1
commit 1d188db11f

View file

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