fix: bug replacing filename

This commit is contained in:
monoid 2025-01-08 23:23:18 +09:00
parent bea6a9c290
commit 76b292760f

View File

@ -64,10 +64,12 @@ export class ContentDiffHandler {
console.log("update path from", cpath, "to", cf.path); console.log("update path from", cpath, "to", cf.path);
const new_doc = createContentFile(this.content_type, cf.path); const new_doc = createContentFile(this.content_type, cf.path);
this.waiting_list.deleteByHash(content_hash); this.waiting_list.deleteByHash(content_hash);
const content_body = await new_doc.createDocumentBody();
await this.doc_cntr.update({ await this.doc_cntr.update({
...dbc[0], ...dbc[0],
...new_doc.createDocumentBody(), ...content_body,
deleted_at: null
}); });
return; return;
} }