mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-23 03:33:53 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user