From 80c62cfdb2fd22e41408fe9f3d7c629bf1ba7798 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Thu, 15 Apr 2021 15:35:15 +0300 Subject: [PATCH] Fix bad request call --- lib/plausible_web/controllers/api/external_sites_controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plausible_web/controllers/api/external_sites_controller.ex b/lib/plausible_web/controllers/api/external_sites_controller.ex index c9cca48b8..befa1d6b9 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