From a0c16d16ee6bd1b0ee50e4148dab02784c1c5c21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rio=20Rodrigues?= Date: Sun, 17 Dec 2023 02:46:40 +0000 Subject: [PATCH] fix: formatting and linting --- lib/safira_web/controllers/attendee_controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/safira_web/controllers/attendee_controller.ex b/lib/safira_web/controllers/attendee_controller.ex index 5fb7f735..ed446821 100644 --- a/lib/safira_web/controllers/attendee_controller.ex +++ b/lib/safira_web/controllers/attendee_controller.ex @@ -18,11 +18,11 @@ defmodule SafiraWeb.AttendeeController do end def show(conn, %{"id" => id}) do - attendee = case String.match?(id, @uuid_regex) do true -> Accounts.get_attendee_with_badge_count_by_id!(id) + _ -> Accounts.get_attendee_by_username!(id) end