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:
parent
1a9d15b1c1
commit
1d188db11f
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue