Make file to library link idempotent.

And remove unused api calls.
This commit is contained in:
Andrey Antukh 2020-11-19 17:23:26 +01:00 committed by Alonso Torres
parent b2957c5f35
commit fca48e39ee
4 changed files with 16 additions and 47 deletions

View file

@ -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])))