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:
Gabriel Horner
2024-11-11 16:32:35 -05:00
parent d0df8e64f3
commit 1a7a2b25ed
5 changed files with 12 additions and 24 deletions

View File

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