Revert " Improve internal naming of setup/props"

This reverts commit f525c6df5e.
This commit is contained in:
alonso.torres 2024-03-13 16:21:12 +01:00
parent 5f0b86e0df
commit a6f70c77cb
18 changed files with 56 additions and 70 deletions

View file

@ -50,15 +50,16 @@
:cause cause))))
instance-id)))
(s/def ::key ::us/string)
(s/def ::props (s/map-of ::us/keyword some?))
(s/def ::main/key ::us/string)
(s/def ::main/props
(s/map-of ::us/keyword some?))
(defmethod ig/pre-init-spec ::props [_]
(s/keys :req [::db/pool]
:opt [::key]))
:opt [::main/key]))
(defmethod ig/init-key ::props
[_ {:keys [::db/pool ::key] :as cfg}]
[_ {:keys [::db/pool ::main/key] :as cfg}]
(db/with-atomic [conn pool]
(db/xact-lock! conn 0)
(when-not key