Skip to content
Snippets Groups Projects
Commit 05f8a066 authored by rinpatch's avatar rinpatch
Browse files

Apply suggestion to lib/pleroma/delivery.ex

parent 2784962d
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ def changeset(delivery, params \\ %{}) do
def create(object_id, user_id) do
%Delivery{}
|> changeset(%{user_id: user_id, object_id: object_id})
|> Repo.insert()
|> Repo.insert(on_conflict: :nothing)
end
def get(object_id, user_id) do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment