mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 12:59:12 -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
|
:code :invalid-version
|
||||||
:hint "provided invalid version"))
|
:hint "provided invalid version"))
|
||||||
|
|
||||||
(srepl/update-file! cfg
|
(binding [srepl/*system* cfg]
|
||||||
:id file-id
|
(srepl/update-file! :id file-id
|
||||||
:update-fn (fn [file]
|
:update-fn (fn [file]
|
||||||
(update file :data assoc :version version))
|
(update file :data assoc :version version))
|
||||||
:migrate? false
|
:migrate? false
|
||||||
:inc-revn? false
|
:inc-revn? false
|
||||||
:save? true)
|
:save? true))
|
||||||
{::rres/status 200
|
{::rres/status 200
|
||||||
::rres/headers {"content-type" "text/plain"}
|
::rres/headers {"content-type" "text/plain"}
|
||||||
::rres/body "OK"}))
|
::rres/body "OK"}))
|
||||||
|
|
|
@ -154,7 +154,7 @@
|
||||||
|
|
||||||
(dissoc file :data)))]
|
(dissoc file :data)))]
|
||||||
|
|
||||||
(db/tx-run! main/system
|
(db/tx-run! (or *system* main/system)
|
||||||
(fn [system]
|
(fn [system]
|
||||||
(binding [*system* system]
|
(binding [*system* system]
|
||||||
(try
|
(try
|
||||||
|
|
Loading…
Add table
Reference in a new issue