mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-12 21:58:58 +09:00
chore(backend): useless await
just grabbing capacity in different line is enough
This commit is contained in:
parent
e5ea8d8561
commit
b7418e2861
@ -37,7 +37,7 @@ export default define(meta, paramDef, async (ps, user) => {
|
||||
|
||||
// Calculate drive usage and capacity
|
||||
const usage = await DriveFiles.calcDriveUsageOf(user.id);
|
||||
const capacity = await user.driveCapacityOverrideMb || instance.localDriveCapacityMb;
|
||||
const capacity = user.driveCapacityOverrideMb || instance.localDriveCapacityMb;
|
||||
|
||||
return {
|
||||
capacity: 1024 * 1024 * capacity,
|
||||
|
Loading…
Reference in New Issue
Block a user