better error handlign
Some checks failed
Build and Publish / build-release (push) Failing after 23s

This commit is contained in:
2026-05-15 13:47:26 -05:00
parent ac114869be
commit fbd3bc9772
2 changed files with 47 additions and 15 deletions

View File

@@ -13,15 +13,4 @@ defmodule CustomerService.Lead.Queries do
lead -> {:ok, lead}
end
end
def list_leads(params \\ %{}) do
Flop.validate_and_run(QuickLead, params, for: QuickLead)
end
def get_lead(id) do
case Repo.get(QuickLead, id) do
nil -> {:error, :not_found}
lead -> {:ok, lead}
end
end
end