mirror of
https://github.com/penpot/penpot.git
synced 2025-05-12 01:06:40 +02:00
🎉 Add builtin copy fast path operation for storage.
This commit is contained in:
parent
15edabc977
commit
d494e44df3
5 changed files with 65 additions and 8 deletions
|
@ -33,6 +33,14 @@
|
|||
:code :invalid-storage-backend
|
||||
:context cfg))
|
||||
|
||||
(defmulti copy-object (fn [cfg _ _] (:type cfg)))
|
||||
|
||||
(defmethod copy-object :default
|
||||
[cfg _ _]
|
||||
(ex/raise :type :internal
|
||||
:code :invalid-storage-backend
|
||||
:context cfg))
|
||||
|
||||
(defmulti get-object-data (fn [cfg _] (:type cfg)))
|
||||
|
||||
(defmethod get-object-data :default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue