Show only active subscriptions

This commit is contained in:
Stanko K.R.
2026-01-15 08:00:19 +01:00
parent 5615b9f6f5
commit 2fa3056e14
@@ -25,6 +25,7 @@ class Admin::StatsController < AdminController
private
def paid_subscriptions
Account::Subscription
.where(status: %w[active trialing past_due])
.where(plan_key: %w[monthly_v1 monthly_extra_storage_v1])
.where.not(account_id: Account::BillingWaiver.select(:account_id))
end