fix: get correct volume path for directories

This commit is contained in:
Nicolas Meienberger
2025-11-08 11:18:52 +01:00
parent 11dd6f46c8
commit 1c4b1f34dd
8 changed files with 21 additions and 16 deletions

View File

@@ -39,7 +39,7 @@ export const volumeController = new Hono()
const response = {
...res.volume,
path: getVolumePath(res.volume.name),
path: getVolumePath(res.volume),
};
return c.json<CreateVolumeDto>(response, 201);
@@ -63,7 +63,7 @@ export const volumeController = new Hono()
const response = {
volume: {
...res.volume,
path: getVolumePath(res.volume.name),
path: getVolumePath(res.volume),
},
statfs: {
total: res.statfs.total ?? 0,
@@ -87,7 +87,7 @@ export const volumeController = new Hono()
const response = {
...res.volume,
path: getVolumePath(res.volume.name),
path: getVolumePath(res.volume),
};
return c.json<UpdateVolumeDto>(response, 200);