Fix inconsistencies on storage backend usage.

This commit is contained in:
Andrey Antukh 2021-07-29 12:34:17 +02:00 committed by Andrés Moya
parent 80ab6bbda2
commit efa5120fac
10 changed files with 41 additions and 34 deletions

View file

@ -11,7 +11,6 @@
[app.common.pages.migrations :as pmg]
[app.common.spec :as us]
[app.common.uuid :as uuid]
[app.config :as cf]
[app.db :as db]
[app.rpc.permissions :as perms]
[app.rpc.queries.files :as files]
@ -288,7 +287,7 @@
(defn- delete-from-storage
[{:keys [storage] :as cfg} file]
(when-let [backend (simpl/resolve-backend storage (cf/get :fdata-storage-backend))]
(when-let [backend (simpl/resolve-backend storage (:data-backend file))]
(simpl/del-object backend file)))
(defn- update-file