fix query name
All checks were successful
Build and Publish / build-release (push) Successful in 1m7s

This commit is contained in:
2026-05-15 14:35:28 -05:00
parent 26fbe233ce
commit 782d1e4377
2 changed files with 2 additions and 2 deletions

View File

@@ -221,7 +221,7 @@ defmodule CustomerServiceWeb.CustomerController do
defp dispatch_and_return(conn, command, %CustomerId{org_id: org_id} = customer_id) do
case CustomerService.CommandedApp.dispatch(command, consistency: :strong) do
:ok ->
case CustomerQueries.get_customer(org_id, to_string(customer_id)) do
case CustomerQueries.get_by_org(org_id, to_string(customer_id)) do
{:ok, customer} ->
conn |> put_status(:ok) |> json(%{data: customer_json(customer)})

View File

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