chore: cleanup

pull/11102/head
Tienson Qin 2024-03-04 17:21:27 +08:00
parent 41755b8dde
commit 82ba50d0b3
1 changed files with 1 additions and 10 deletions

View File

@ -478,16 +478,7 @@
(when-let [conn (worker-state/get-datascript-conn repo)]
(let [ops (edn/read-string ops-str)
opts (edn/read-string opts-str)
start-tx (:max-tx @conn)
result (outliner-op/apply-ops! repo conn ops (worker-state/get-date-formatter repo) opts)
end-tx (:max-tx @conn)]
(when (= start-tx end-tx) ; nothing changes
;; remove task from ldb/*request-id->response
(worker-util/post-message :sync-db-changes (pr-str
{:request-id (:request-id opts)
:repo repo
:tx-data []
:tx-meta nil})))
result (outliner-op/apply-ops! repo conn ops (worker-state/get-date-formatter repo) opts)]
(pr-str result))))
(file-writes-finished?