mirror of
https://github.com/penpot/penpot.git
synced 2025-05-25 03:46:12 +02:00
✨ Fix inconsistencies on storage backend usage.
This commit is contained in:
parent
80ab6bbda2
commit
efa5120fac
10 changed files with 41 additions and 34 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue