This commit is contained in:
Rizky 2024-02-02 10:05:57 +07:00
parent f3fa69afcb
commit 2519cb3196
1 changed files with 3 additions and 1 deletions

View File

@ -8,11 +8,13 @@ import { user } from "../entity/user";
import { gzipAsync } from "../entity/zlib";
import { sendWS } from "../sync-handler";
import { SyncConnection, SyncType } from "../type";
import { validate } from "uuid";
export const page_load: SAction["page"]["load"] = async function (
this: SyncConnection,
id: string
) {
if (!id || (id && !validate(id))) return;
let snap = snapshot.get("page", id);
let ydoc = docs.page[id];