mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 09:26:28 +00:00
chore: add a couple assertions for between queries
from #11565. Also stop logging errors for valid between queries and deleted unused test code
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
;; between
|
||||
;; Example: (between -7d +7d)
|
||||
;; (between created-at -1d today)
|
||||
;; (between last-modified-at -1d today)
|
||||
;; (between updated-at -1d today)
|
||||
;; [[page-ref]]
|
||||
;; property (block)
|
||||
;; task (block)
|
||||
@@ -719,15 +719,6 @@ Some bindings in this fn:
|
||||
(let [q' (template/resolve-dynamic-template! q)]
|
||||
(pre-transform q')))
|
||||
|
||||
(defn get-db-property-value
|
||||
"Fetch a property's value given a block map and property name. Similar to
|
||||
query-table/sort-by-fn. We should standardize this soon"
|
||||
[m prop]
|
||||
(case prop
|
||||
:created-at (:block/created-at m)
|
||||
:updated-at (:block/updated-at m)
|
||||
(get-in m [:block/properties-by-name (name prop)])))
|
||||
|
||||
(def db-block-attrs
|
||||
"Like ldb/block-attrs but for query dsl an db graphs"
|
||||
;; '*' needed as we need to pull user properties and don't know their names in advance
|
||||
|
||||
Reference in New Issue
Block a user