add disks tests

This commit is contained in:
Girish Ramakrishnan
2022-10-12 10:35:12 +02:00
parent 62d68e2733
commit fa7c0a6e1b
3 changed files with 47 additions and 8 deletions

View File

@@ -175,7 +175,7 @@ async function getDiskUsage(req, res, next) {
const [error, result] = await safe(system.getDiskUsage());
if (error) return next(BoxError.toHttpError(error));
next(new HttpSuccess(201, { usage: result }));
next(new HttpSuccess(200, { usage: result }));
}
async function updateDiskUsage(req, res, next) {