fix: omv integrations is unable to correctly retrieve the file system when using omv-zfs (#2337)

* fix: omv integrations is unable to correctly retrieve the file system when using omv-zfs
This commit is contained in:
Yossi Hillali
2025-02-18 23:05:09 +02:00
committed by GitHub
parent 8b7caf1d7d
commit 63e96230e0
2 changed files with 2 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ export class OpenMediaVaultIntegration extends Integration {
const fileSystem = fileSystemResult.data.response.map((fileSystem) => ({
deviceName: fileSystem.devicename,
used: fileSystem.used,
available: fileSystem.available,
available: fileSystem.available.toString(),
percentage: fileSystem.percentage,
}));

View File

@@ -25,7 +25,7 @@ export const fileSystemSchema = z.object({
z.object({
devicename: z.string(),
used: z.string(),
available: z.string(),
available: z.string().or(z.number()),
percentage: z.number(),
}),
),