0
Fork 0
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:
Andrey Antukh 2024-01-10 14:36:30 +01:00
parent 3d66a4b7be
commit b63a8d34b5
2 changed files with 8 additions and 8 deletions

View file

@ -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"}))

View file

@ -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