mirror of
https://github.com/logseq/logseq.git
synced 2026-04-30 17:06:23 +00:00
Refactor/move property handler to outliner dep (#11311)
The end goal is to get rid of `db/transact!` and send outliner ops to the db worker. Currently, some property ops are async, set-block-property! will also need to be async because when setting a non-ref value (e.g. a number str "2"), we need to query whether a block with the value exists, this unfortunately, will be an async query, so we're risking turning more functions to async in the future which makes it hard to reason about the implementation.
This commit is contained in:
@@ -55,9 +55,3 @@
|
||||
(let [repo (state/get-current-repo)
|
||||
db (db/get-db repo)]
|
||||
(db-property/get-closed-property-values db property-id)))
|
||||
|
||||
(defn get-closed-value-entity-by-name
|
||||
[property-id value-name]
|
||||
(let [repo (state/get-current-repo)
|
||||
db (db/get-db repo)]
|
||||
(db-property/get-closed-value-entity-by-name db property-id value-name)))
|
||||
|
||||
Reference in New Issue
Block a user