mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-26 16:30:57 +01:00
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:
@@ -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(),
|
||||
}),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user