fixes to root path endpoint

merge-requests/4/head
Matthew 2020-07-04 23:04:16 -04:00
parent ea2a61fddd
commit 9802240e94
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ export default class Account extends Route {
this.server.client.redis.get(`storage-${req.account.username}`), this.server.client.redis.get(`storage-${req.account.username}`),
]); ]);
let storage: string; 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}`); const val = await this.server.client.util.exec(`du -sb /home/${req.account.username}`);
// eslint-disable-next-line prefer-destructuring // eslint-disable-next-line prefer-destructuring
storage = val.split('\t')[0]; storage = val.split('\t')[0];