fix: fetching built-in property values

Fixes :number properties like hl-stamp and hl-page which returned
refs instead of actual values. This will also fix it for
future usage of built-in :default props. Also fixed a db test
This commit is contained in:
Gabriel Horner
2024-05-15 12:23:14 -04:00
parent 980c88b60d
commit 2117245b28
4 changed files with 15 additions and 11 deletions

View File

@@ -9,7 +9,7 @@
[logseq.db.frontend.property.util :as db-property-util]))
(defn lookup
"Get the value of coll's (a map) by db-ident. For file and db graphs"
"Get the property value by a built-in property's db-ident from coll. For file and db graphs"
[coll key]
(let [repo (state/get-current-repo)]
(db-property-util/lookup repo coll key)))