Skip to content

Commit

Permalink
fix: drop ! from get_attendee_with_badge_count_by_username function
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRodrigues10 committed Jan 16, 2024
1 parent 33a73bf commit 9d4504d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/safira/accounts/accounts.ex
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ defmodule Safira.Accounts do
end
end

def get_attendee_with_badge_count_by_username!(username) do
def get_attendee_with_badge_count_by_username(username) do
case get_attendee_by_username!(username) do
nil ->
nil
Expand Down
2 changes: 1 addition & 1 deletion lib/safira_web/controllers/attendee_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ defmodule SafiraWeb.AttendeeController do

def show(conn, _) when is_map_key(conn.query_params, "username") do
username = conn.query_params["username"]
attendee = Accounts.get_attendee_with_badge_count_by_username!(username)
attendee = Accounts.get_attendee_with_badge_count_by_username(username)

cond do
is_nil(attendee) ->
Expand Down

0 comments on commit 9d4504d

Please sign in to comment.