fix: block attrs for db advanced queries

db graph advanced queries were fetching file graph attributes
This commit is contained in:
Gabriel Horner
2024-09-30 12:39:33 -04:00
parent 3d7269e7b4
commit 15fa327aec
5 changed files with 38 additions and 39 deletions

View File

@@ -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 ~'$ ~'%