Fix event notification tests

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-10-18 11:09:27 +02:00
parent f31454c692
commit f24ec89408
7 changed files with 45 additions and 26 deletions

View File

@@ -738,6 +738,11 @@ defmodule Mobilizon.Events do
|> Repo.one()
end
@spec get_participant!(integer | String.t()) :: Participant.t()
def get_participant!(participant_id) do
Repo.get_by!(Participant, id: participant_id)
end
@doc """
Gets a single participation for an event and actor.