Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Remove unused schema functions
Uku Tahtf9a7e0d374cd
diff --git a/lib/plausible/site/spike_notification.ex b/lib/plausible/site/spike_notification.exindex 30a0a43716..8d966cece6 100644--- a/lib/plausible/site/spike_notification.ex+++ b/lib/plausible/site/spike_notification.ex@@ -11,25 +11,8 @@ defmodule Plausible.Site.SpikeNotification dotimestamps()end- def changeset(settings, attrs \\ %{}) do- settings- |> cast(attrs, [:site_id, :recipients])- |> validate_required([:site_id, :recipients])- |> unique_constraint(:site)- end-def was_sent(schema) doschema|> change(last_sent: NaiveDateTime.utc_now() |> NaiveDateTime.truncate(:second))end-- def add_recipient(report, recipient) do- report- |> change(recipients: report.recipients ++ [recipient])- end-- def remove_recipient(report, recipient) do- report- |> change(recipients: List.delete(report.recipients, recipient))- endend