Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(server): should drop blob steam if not used (#9103)

liuyi671c41cb1a30
diff --git a/packages/backend/server/src/core/storage/wrappers/blob.ts b/packages/backend/server/src/core/storage/wrappers/blob.ts
index 38b63df950..edc4b685ab 100644
--- a/packages/backend/server/src/core/storage/wrappers/blob.ts
+++ b/packages/backend/server/src/core/storage/wrappers/blob.ts
@@ -144,6 +144,7 @@ export class WorkspaceBlobStorage {
if (!meta) {
const blob = await this.get(workspaceId, key);
meta = blob.metadata;
+ blob.body?.destroy();
}
if (meta) {