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 mix task
Uku Taht9aa466b23f8f
diff --git a/lib/mix/tasks/check_overuse.ex b/lib/mix/tasks/check_overuse.exdeleted file mode 100644index 0bb56a53c4..0000000000--- a/lib/mix/tasks/check_overuse.ex+++ /dev/null@@ -1,36 +0,0 @@-defmodule Mix.Tasks.CheckOveruse do- use Mix.Task- use Plausible.Repo- require Logger-- # coveralls-ignore-start-- def run(args) do- Application.ensure_all_started(:plausible)- Logger.configure(level: :error)- execute(args)- end-- def execute(_args \\ []) do- active_users =- Repo.all(- from u in Plausible.Auth.User,- join: s in Plausible.Billing.Subscription,- on: s.user_id == u.id,- where: s.status == "active",- select: {u, s}- )-- for {user, subscription} <- active_users do- IO.puts("Checking #{user.email}...")- usage = Plausible.Billing.usage(user)- allowance = Plausible.Billing.Plans.allowance(subscription)-- if usage > allowance do- IO.puts("Overuse: #{user.email}")- IO.puts("Usage: #{usage}")- IO.puts("Allowance: #{allowance}")- end- end- end-end