diff --git a/backend/src/app/http/debug.clj b/backend/src/app/http/debug.clj index 19d6529fc..163028904 100644 --- a/backend/src/app/http/debug.clj +++ b/backend/src/app/http/debug.clj @@ -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"})) diff --git a/backend/src/app/srepl/helpers.clj b/backend/src/app/srepl/helpers.clj index f42fcf26c..f1a267e48 100644 --- a/backend/src/app/srepl/helpers.clj +++ b/backend/src/app/srepl/helpers.clj @@ -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