fix: resolve api issue with custom name

This commit is contained in:
Guarzo
2025-06-13 21:14:07 -04:00
parent 45eb08fc3a
commit 2fc45e00b4
5 changed files with 51 additions and 22 deletions

View File

@@ -266,6 +266,10 @@ defmodule WandererAppWeb.MapConnectionAPIController do
conn
|> put_status(:bad_request)
|> json(%{error: reason})
{:error, :precondition_failed, _reason} ->
conn
|> put_status(:bad_request)
|> json(%{error: "Invalid request parameters"})
_other ->
conn
|> put_status(:internal_server_error)