mirror of
https://github.com/penpot/penpot.git
synced 2025-06-10 00:11:37 +02:00
♻️ Refactor srepl helpers
This commit is contained in:
parent
dc67056a8c
commit
f4ac607958
5 changed files with 370 additions and 393 deletions
|
@ -147,8 +147,9 @@
|
|||
(restore-file-snapshot! cfg params)))))
|
||||
|
||||
(defn take-file-snapshot!
|
||||
[{:keys [::db/conn]} {:keys [file-id label]}]
|
||||
(let [file (db/get conn :file {:id file-id})
|
||||
[cfg {:keys [file-id label]}]
|
||||
(let [conn (db/get-connection cfg)
|
||||
file (db/get conn :file {:id file-id})
|
||||
id (uuid/next)]
|
||||
|
||||
(l/debug :hint "creating file snapshot"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue