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 authored and GitHub committed 2025-02-18 22:05:09 +01:00
1 parent 8b7caf1d7d
commit 63e96230e0
2 files changed
+2 -2

No files matched your search

@@ -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,
}));
@@ -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(),
}),
),