fix: api call that failed with new async call

Also update lint for recent change with frontend.db.async
This commit is contained in:
Gabriel Horner
2024-01-04 14:29:38 -05:00
parent ec916de768
commit c7ab2e763c
3 changed files with 3 additions and 2 deletions

View File

@@ -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))))

View File

@@ -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)