mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-16 05:47:09 +08:00
fix(nbstore): should not force throw error (#12152)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved handling of oversized blobs by allowing operations to continue after notifying about size limits, instead of stopping execution with an error. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -40,7 +40,6 @@ export class BlobFrontend {
|
||||
for (const cb of this.onReachedMaxBlobSizeCallbacks) {
|
||||
cb(blob.data.byteLength);
|
||||
}
|
||||
throw new Error('Blob size exceeds the maximum limit');
|
||||
}
|
||||
await using lock = await this.lock.lock('blob', blob.key);
|
||||
await this.storage.set(blob);
|
||||
|
||||
Reference in New Issue
Block a user