fixing history
This commit is contained in:
parent
5048e8e287
commit
fc61511170
|
|
@ -35,7 +35,7 @@ export const yjs_diff_local: SAction["yjs"]["diff_local"] = async function (
|
||||||
}
|
}
|
||||||
history[id] = cur;
|
history[id] = cur;
|
||||||
if (mode === "create") {
|
if (mode === "create") {
|
||||||
_db.page_history.create({
|
await _db.page_history.create({
|
||||||
data: {
|
data: {
|
||||||
id_page: id,
|
id_page: id,
|
||||||
content_tree: await gzipAsync(JSON.stringify(root.toJSON())),
|
content_tree: await gzipAsync(JSON.stringify(root.toJSON())),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue