1
1
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:
ltlapy 2022-07-14 20:55:13 +09:00
parent e5ea8d8561
commit b7418e2861

View File

@ -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,