mirror of
https://github.com/penpot/penpot.git
synced 2025-07-20 18:18:11 +02:00
Revert "✨ Improve internal naming of setup/props"
This reverts commit f525c6df5e
.
This commit is contained in:
parent
5f0b86e0df
commit
a6f70c77cb
18 changed files with 56 additions and 70 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue