fix flaky test_user_relationship_test.exs:81
This commit is contained in:
parent
0814d0e0cb
commit
47e3a72b6e
2 changed files with 11 additions and 4 deletions
|
|
@ -91,8 +91,9 @@ defmodule Pleroma.UserRelationship do
|
|||
expires_at: expires_at
|
||||
})
|
||||
|> Repo.insert(
|
||||
on_conflict: {:replace_all_except, [:id]},
|
||||
conflict_target: [:source_id, :relationship_type, :target_id]
|
||||
on_conflict: {:replace_all_except, [:id, :inserted_at]},
|
||||
conflict_target: [:source_id, :relationship_type, :target_id],
|
||||
returning: true
|
||||
)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue