From 08225c4d16d95009bf5654be0b743847033de583 Mon Sep 17 00:00:00 2001 From: rcmerci Date: Sun, 23 Jun 2024 22:11:43 +0800 Subject: [PATCH] enhance(rtc): add :recent-updates in response schema --- src/main/frontend/worker/rtc/const.cljs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/frontend/worker/rtc/const.cljs b/src/main/frontend/worker/rtc/const.cljs index be0de4bb7..b2c4552f1 100644 --- a/src/main/frontend/worker/rtc/const.cljs +++ b/src/main/frontend/worker/rtc/const.cljs @@ -80,6 +80,14 @@ [:user/uuid :uuid] [:user/name :string] [:user/email :string]]]] + [:recent-updates {:optional true} + [:map-of :uuid ;;user-uuid + [:sequential + [:cat + [inst? {:decode/string mt/-string->date}] + [:map + [:update-block-uuids {:optional true} [:set :uuid]] + [:delete-block-uuids {:optional true} [:set :uuid]]]]]]] [:refed-blocks {:optional true} [:maybe [:sequential