fix(server): team quota await (#9352)

This commit is contained in:
DarkSky
2024-12-26 20:08:49 +08:00
committed by GitHub
parent 5d27a13e2c
commit 4ae8c2f4ef
2 changed files with 27 additions and 9 deletions

View File

@@ -104,7 +104,7 @@ export class QuotaManagementService {
}
async getWorkspaceStorageUsage(workspaceId: string) {
const totalSize = this.storage.totalSize(workspaceId);
const totalSize = await this.storage.totalSize(workspaceId);
// ensure that size is within the safe range of gql
if (Number.isSafeInteger(totalSize)) {
return totalSize;