fix query name
All checks were successful
Build and Publish / build-release (push) Successful in 1m7s
All checks were successful
Build and Publish / build-release (push) Successful in 1m7s
This commit is contained in:
@@ -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)})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user