mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 09:26:28 +00:00
fix: block attrs for db advanced queries
db graph advanced queries were fetching file graph attributes
This commit is contained in:
@@ -606,7 +606,7 @@ Some bindings in this fn:
|
||||
|
||||
(defn query-wrapper
|
||||
[where {:keys [blocks? block-attrs]}]
|
||||
(let [block-attrs (or block-attrs (butlast model/block-attrs))
|
||||
(let [block-attrs (or block-attrs (butlast model/file-graph-block-attrs))
|
||||
q (if blocks? ; FIXME: it doesn't need to be either blocks or pages
|
||||
`[:find (~'pull ~'?b ~block-attrs)
|
||||
:in ~'$ ~'%
|
||||
|
||||
Reference in New Issue
Block a user