mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
feat(nbstore): add cloud implementation (#8810)
This commit is contained in:
@@ -23,7 +23,7 @@ export class UserQuotaStore extends Store {
|
||||
return {
|
||||
userId: data.currentUser.id,
|
||||
quota: data.currentUser.quota,
|
||||
used: data.collectAllBlobSizes.size,
|
||||
used: data.currentUser.quotaUsage.storageQuota,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ export class CloudBlobStorage implements BlobStorage {
|
||||
query: deleteBlobMutation,
|
||||
variables: {
|
||||
workspaceId: key,
|
||||
hash: key,
|
||||
key,
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -82,6 +82,6 @@ export class CloudBlobStorage implements BlobStorage {
|
||||
workspaceId: this.workspaceId,
|
||||
},
|
||||
});
|
||||
return result.listBlobs;
|
||||
return result.workspace.blobs.map(blob => blob.key);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user