fix to string method
All checks were successful
Build and Publish / build-release (push) Successful in 1m2s

This commit is contained in:
2026-05-15 14:13:12 -05:00
parent 39527d49a1
commit c371191bd8
2 changed files with 2 additions and 2 deletions

View File

@@ -179,7 +179,7 @@ defmodule CustomerServiceWeb.LeadController do
defp dispatch_and_return(conn, command, %LeadId{} = lead_id) do
case CustomerService.CommandedApp.dispatch(command, consistency: :strong) do
:ok ->
case LeadQueries.get_lead(LeadId.to_string(lead_id)) do
case LeadQueries.get_lead(to_string(lead_id)) do
{:ok, lead} ->
conn |> put_status(:ok) |> json(%{data: lead_json(lead)})