fix: adding class properties can result

in clobbered db idents. Also rename fn to make its
purpose explicit
This commit is contained in:
Gabriel Horner
2024-04-08 16:32:27 -04:00
parent ea1cc87d77
commit 6a2b6d2913
6 changed files with 33 additions and 20 deletions

View File

@@ -24,7 +24,7 @@
(name key)
key)]
(if (sqlite-util/db-based-graph? repo)
(when-let [property (d/entity db (db-property/user-property-ident-from-name property-name))]
(when-let [property (d/entity db (db-property/create-user-property-ident-from-name property-name))]
(get coll (:block/uuid property)))
(get coll key))))