 
   def redeem(paper_vote, team, member, admin, at \\ nil) do
     at = at || DateTime.utc_now
-
-    %User{role: "admin"} = admin = Repo.get!(User, admin.id)
 
     cond do
       !team.eligible -> {:error, :team_not_eligible}

  alias Api.{CompetitionActions, PaperVote, User}

  def create(category, admin) do
    %User{role: "admin"} = admin = Repo.get!(User, admin.id)

    case CompetitionActions.voting_status do
      :ended -> {:error, :already_ended}
      _ ->

  def annul(paper_vote, admin, at \\ nil) do
    at = at || DateTime.utc_now

    case CompetitionActions.voting_status do
      :ended -> {:error, :already_ended}
      _ ->
