Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Fix more tests

Uku Tahta359271af2d2
diff --git a/test/plausible_web/controllers/api/stats_controller/main_graph_test.exs b/test/plausible_web/controllers/api/stats_controller/main_graph_test.exs
index d6a41fb146..194d3e93ed 100644
--- a/test/plausible_web/controllers/api/stats_controller/main_graph_test.exs
+++ b/test/plausible_web/controllers/api/stats_controller/main_graph_test.exs
@@ -185,7 +185,7 @@ defmodule PlausibleWeb.Api.StatsController.MainGraphTest do
use Plausible.Repo
Repo.update_all(from(s in "sites", where: s.id == ^site.id),
- set: [inserted_at: ~N[2020-01-01 00:00:00]]
+ set: [stats_start_date: ~D[2020-01-01]]
)
populate_stats(site, [