🎉 Add support media management via library

This commit is contained in:
Alejandro Alonso 2022-11-30 13:29:02 +01:00
parent a19417417a
commit fffacf3552
3 changed files with 65 additions and 9 deletions

View file

@ -541,6 +541,14 @@
:object (assoc media :id id)})
(assoc :last-id id))))
(defn delete-library-media
[file media-id]
(let [id (uuid/uuid media-id)]
(-> file
(commit-change
{:type :del-media
:id id}))))
(defn start-component
[file data]