fixing history

This commit is contained in:
Rizky 2024-08-19 12:00:06 +07:00
parent 5048e8e287
commit fc61511170
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export const yjs_diff_local: SAction["yjs"]["diff_local"] = async function (
}
history[id] = cur;
if (mode === "create") {
_db.page_history.create({
await _db.page_history.create({
data: {
id_page: id,
content_tree: await gzipAsync(JSON.stringify(root.toJSON())),