From 9802240e94d26069683b3c3bedf9cf2297385d86 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sat, 4 Jul 2020 23:04:16 -0400 Subject: [PATCH] fixes to root path endpoint --- src/api/routes/Account.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/Account.ts b/src/api/routes/Account.ts index 50a9384..ff5f259 100644 --- a/src/api/routes/Account.ts +++ b/src/api/routes/Account.ts @@ -53,7 +53,7 @@ export default class Account extends Route { this.server.client.redis.get(`storage-${req.account.username}`), ]); let storage: string; - if (req.query?.cache === 'true') { + if (req.query?.cache === 'false') { const val = await this.server.client.util.exec(`du -sb /home/${req.account.username}`); // eslint-disable-next-line prefer-destructuring storage = val.split('\t')[0];