From 78260fbc424da748376224c70bd691da5758e760 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 15 Dec 2023 12:56:31 +0100 Subject: [PATCH] :bug: Fix no migration are applied on accessing to a file --- backend/src/app/rpc/commands/files.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/src/app/rpc/commands/files.clj b/backend/src/app/rpc/commands/files.clj index a0cc12e43..30dd81cae 100644 --- a/backend/src/app/rpc/commands/files.clj +++ b/backend/src/app/rpc/commands/files.clj @@ -250,11 +250,13 @@ file))) (defn get-file - [{:keys [::db/conn] :as cfg} id & {:keys [project-id migrate? + [{:keys [::db/conn] :as cfg} id & {:keys [project-id + migrate? include-deleted? lock-for-update?] :or {include-deleted? false - lock-for-update? false}}] + lock-for-update? false + migrate? true}}] (dm/assert! "expected cfg with valid connection" (db/connection-map? cfg))