Browse Source

fix(api): incorrect db ns for http api call

charlie 4 months ago
parent
commit
2d1436a899
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/electron/listener.cljs

+ 1 - 1
src/main/electron/listener.cljs

@@ -130,7 +130,7 @@
                          method' (last ns-method)
                          args    (.-args data)
                          ret-fn! #(ipc/invoke (str :electron.server/sync! sync-id) %)
-                         app? (contains? #{"app" "editor"} ns')
+                         app? (contains? #{"app" "editor" "db"} ns')
                          ^js sdk1 (aget js/window.logseq "api")
                          ^js sdk2 (aget js/window.logseq "sdk")]