Skip to content

Commit

Permalink
Adjust order
Browse files Browse the repository at this point in the history
  • Loading branch information
rdk08 committed Apr 18, 2023
1 parent bd43ed4 commit b74f1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plausible_web/controllers/api/external_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ defmodule PlausibleWeb.Api.ExternalController do
defp is_bot?(%UAInspector.Result.Bot{}), do: true

defp is_bot?(%UAInspector.Result{client: %UAInspector.Result.Client{name: "Headless Chrome"}}) do
Application.get_env(:plausible, :system_environment) not in ["staging", "rc"]
Application.get_env(:plausible, :system_environment) not in ["rc", "staging"]
end

defp is_bot?(_), do: false
Expand Down

0 comments on commit b74f1c1

Please sign in to comment.