diff --git a/packages/server/src/diff/content_handler.ts b/packages/server/src/diff/content_handler.ts index 61dd451..24c9871 100644 --- a/packages/server/src/diff/content_handler.ts +++ b/packages/server/src/diff/content_handler.ts @@ -64,10 +64,12 @@ export class ContentDiffHandler { console.log("update path from", cpath, "to", cf.path); const new_doc = createContentFile(this.content_type, cf.path); this.waiting_list.deleteByHash(content_hash); - + const content_body = await new_doc.createDocumentBody(); + await this.doc_cntr.update({ ...dbc[0], - ...new_doc.createDocumentBody(), + ...content_body, + deleted_at: null }); return; }