mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -05:00
🐛 Fix debug reset file version method
This commit is contained in:
parent
3d66a4b7be
commit
b63a8d34b5
2 changed files with 8 additions and 8 deletions
|
@ -412,13 +412,13 @@
|
|||
:code :invalid-version
|
||||
:hint "provided invalid version"))
|
||||
|
||||
(srepl/update-file! cfg
|
||||
:id file-id
|
||||
:update-fn (fn [file]
|
||||
(update file :data assoc :version version))
|
||||
:migrate? false
|
||||
:inc-revn? false
|
||||
:save? true)
|
||||
(binding [srepl/*system* cfg]
|
||||
(srepl/update-file! :id file-id
|
||||
:update-fn (fn [file]
|
||||
(update file :data assoc :version version))
|
||||
:migrate? false
|
||||
:inc-revn? false
|
||||
:save? true))
|
||||
{::rres/status 200
|
||||
::rres/headers {"content-type" "text/plain"}
|
||||
::rres/body "OK"}))
|
||||
|
|
|
@ -154,7 +154,7 @@
|
|||
|
||||
(dissoc file :data)))]
|
||||
|
||||
(db/tx-run! main/system
|
||||
(db/tx-run! (or *system* main/system)
|
||||
(fn [system]
|
||||
(binding [*system* system]
|
||||
(try
|
||||
|
|
Loading…
Reference in a new issue