fix: revise whiteboard saving throttle code

This commit is contained in:
Peng Xiao
2022-09-20 16:47:05 +08:00
parent b4e6ad4769
commit 2c4798f6dd
4 changed files with 23 additions and 10 deletions

View File

@@ -104,7 +104,6 @@
(let [{:keys [pages assets]} (js->clj tldr :keywordize-keys true)
page (first pages)
tx (tldr-page->blocks-tx page-name (assoc page :assets assets))]
(state/set-last-transact-time! (state/get-current-repo) (util/time-ms))
(db-utils/transact! tx)))
(defn get-default-tldr