forked from engineering/cloudservices
fixes to root path endpoint
parent
ea2a61fddd
commit
9802240e94
|
@ -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];
|
||||||
|
|
Loading…
Reference in New Issue