mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 15:45:00 +00:00
Merge branch 'master' into fix/dsl-query-boolean-operators
This commit is contained in:
@@ -561,12 +561,19 @@
|
||||
(take @sample (shuffle col)))
|
||||
identity)
|
||||
transform-fn (comp sort-by random-samples)]
|
||||
(react/react-query repo
|
||||
{:query query
|
||||
:rules rules
|
||||
:query-string query-string}
|
||||
{:use-cache? false
|
||||
:transform-fn transform-fn}))))))))))
|
||||
(try
|
||||
(react/react-query repo
|
||||
{:query query
|
||||
:query-string query-string
|
||||
:rules rules
|
||||
:throw-exception true}
|
||||
{:use-cache? false
|
||||
:transform-fn transform-fn})
|
||||
(catch ExceptionInfo e
|
||||
;; Allow non-existent page queries to be ignored
|
||||
(if (string/includes? (str (.-message e)) "Nothing found for entity")
|
||||
(log/error :query-dsl-error e)
|
||||
(throw e)))))))))))))
|
||||
|
||||
(defn custom-query
|
||||
[repo query-m query-opts]
|
||||
|
||||
Reference in New Issue
Block a user