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];