From 6e233991b446a47d6bbde86ad07a273361cc42a0 Mon Sep 17 00:00:00 2001 From: monoid Date: Wed, 8 Jan 2025 23:33:43 +0900 Subject: [PATCH] fix: replacing filename bug on creating --- packages/server/src/diff/content_handler.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/server/src/diff/content_handler.ts b/packages/server/src/diff/content_handler.ts index 24c9871..aa69c42 100644 --- a/packages/server/src/diff/content_handler.ts +++ b/packages/server/src/diff/content_handler.ts @@ -89,9 +89,12 @@ export class ContentDiffHandler { console.log("create",cpath, hash) const c = this.tombstone.get(hash); if (c !== undefined) { + console.log("revive document", c.id) + const content_body = await content.createDocumentBody(); await this.doc_cntr.update({ id: c.id, - ...content.createDocumentBody(), + ...content_body, + deleted_at: null, }); } if (this.waiting_list.hasByHash(hash)) {