From 6eac9102c9da49eca5d04febfc61b6086a379379 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 15 Nov 2021 12:57:54 +0100 Subject: [PATCH] :bug: Prevent conflict errors just ignoring repeated requests. On media image uploading. --- backend/src/app/rpc/mutations/media.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/app/rpc/mutations/media.clj b/backend/src/app/rpc/mutations/media.clj index bfe876df1e..2609f00d3f 100644 --- a/backend/src/app/rpc/mutations/media.clj +++ b/backend/src/app/rpc/mutations/media.clj @@ -124,7 +124,8 @@ :thumbnail-id (:id thumb) :width (:width source-info) :height (:height source-info) - :mtype source-mtype}))) + :mtype source-mtype} + {:on-conflict-do-nothing true}))) ;; --- Create File Media Object (from URL)