Skip to content
Snippets Groups Projects
Commit a375789f authored by Uku Taht's avatar Uku Taht
Browse files

Deal with nil when importing

parent 3a0ec548
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ defmodule Plausible.Imported do
Plausible.ClickhouseRepo.clear_imported_stats_for(site.id)
end
def from_google_analytics(nil, _site_id, _metric, _timezone), do: {:ok, nil}
def from_google_analytics(nil, _site_id, _metric), do: {:ok, nil}
def from_google_analytics(data, site_id, table) do
Logger.debug("Processing imported data (table=#{table}): #{inspect(data)}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment