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
Branches
Tags
No related merge requests found
...@@ -7,7 +7,7 @@ defmodule Plausible.Imported do ...@@ -7,7 +7,7 @@ defmodule Plausible.Imported do
Plausible.ClickhouseRepo.clear_imported_stats_for(site.id) Plausible.ClickhouseRepo.clear_imported_stats_for(site.id)
end 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 def from_google_analytics(data, site_id, table) do
Logger.debug("Processing imported data (table=#{table}): #{inspect(data)}") 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.
Please register or to comment