mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
fix: api call that failed with new async call
Also update lint for recent change with frontend.db.async
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
(defn <q
|
||||
[graph & inputs]
|
||||
(assert (not-any? fn? inputs) "Async query inptus can't include fns because fn can't be serialized")
|
||||
(assert (not-any? fn? inputs) "Async query inputs can't include fns because fn can't be serialized")
|
||||
(when-let [sqlite @db-browser/*sqlite]
|
||||
(p/let [result (.q sqlite graph (pr-str inputs))]
|
||||
(bean/->clj result))))
|
||||
|
||||
@@ -139,7 +139,7 @@
|
||||
(def ^:export get_current_graph_templates
|
||||
(fn []
|
||||
(when-let [repo (state/get-current-repo)]
|
||||
(let [templates (db-async/<get-all-templates repo)]
|
||||
(p/let [templates (db-async/<get-all-templates repo)]
|
||||
(some-> templates
|
||||
(update-vals db/pull)
|
||||
(sdk-utils/normalize-keyword-for-json)
|
||||
|
||||
Reference in New Issue
Block a user