mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
Merge branch 'master' into feat/mcp-server
This commit is contained in:
@@ -914,12 +914,15 @@
|
||||
service)))))
|
||||
|
||||
(defn- notify-invalid-data
|
||||
[{:keys [tx-meta]}]
|
||||
[{:keys [tx-meta]} errors]
|
||||
;; don't notify on production when undo/redo failed
|
||||
(when-not (and (or (:undo? tx-meta) (:redo? tx-meta))
|
||||
(not worker-util/dev?))
|
||||
(shared-service/broadcast-to-clients! :notification
|
||||
[["Invalid DB!"] :error])))
|
||||
[["Invalid DB!"] :error])
|
||||
(worker-util/post-message :capture-error
|
||||
{:error (ex-info "Invalid DB" {})
|
||||
:payload {:errors (str errors)}})))
|
||||
|
||||
(defn init
|
||||
"web worker entry"
|
||||
|
||||
Reference in New Issue
Block a user