Handle `nil` from `Plausible.Geo.database_type()`

pull/3559/head
Adam Rutkowski 3 years ago
parent e058ade722
commit fba7bb86c5

@ -366,7 +366,9 @@ defmodule PlausibleWeb.StatsController do
on_full_build do
false
else
String.starts_with?(Plausible.Geo.database_type(), "DBIP")
Plausible.Geo.database_type()
|> to_string()
|> String.starts_with?("DBIP")
end
end

Loading…
Cancel
Save