Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Fix bad request call

Uku Taht80c62cfdb2fd
diff --git a/lib/plausible_web/controllers/api/external_sites_controller.ex b/lib/plausible_web/controllers/api/external_sites_controller.ex
index c9cca48b8f..befa1d6b98 100644
--- a/lib/plausible_web/controllers/api/external_sites_controller.ex
+++ b/lib/plausible_web/controllers/api/external_sites_controller.ex
@@ -56,7 +56,7 @@ defmodule PlausibleWeb.Api.ExternalSitesController do
H.bad_request(conn, "Parameter `name` is required to create a shared link")
e ->
- H.bad_request(400, "Something went wrong: #{inspect(e)}")
+ H.bad_request(conn, "Something went wrong: #{inspect(e)}")
end
end