mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
fix(server): team quota await (#9352)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user