fix: bug replacing filename
This commit is contained in:
parent
bea6a9c290
commit
76b292760f
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user