Apply suggestion to lib/pleroma/delivery.ex
This commit is contained in:
parent
2784962dba
commit
05f8a066a1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue