mirror of
https://github.com/penpot/penpot.git
synced 2025-05-13 08:26:39 +02:00
✨ Make file to library link idempotent.
And remove unused api calls.
This commit is contained in:
parent
b2957c5f35
commit
fca48e39ee
4 changed files with 16 additions and 47 deletions
|
@ -55,13 +55,3 @@
|
|||
[conn {:keys [id] :as props}]
|
||||
(let [sql "delete from media_object where id=? and deleted_at is not null"]
|
||||
(db/exec-one! conn [sql id])))
|
||||
|
||||
(defmethod handle-deletion :color
|
||||
[conn {:keys [id] :as props}]
|
||||
(let [sql "delete from color where id=? and deleted_at is not null"]
|
||||
(db/exec-one! conn [sql id])))
|
||||
|
||||
(defmethod handle-deletion :page
|
||||
[conn {:keys [id] :as props}]
|
||||
(let [sql "delete from page where id=? and deleted_at is not null"]
|
||||
(db/exec-one! conn [sql id])))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue