From f87b3110d6cc42432e3c5bfdc8f610b54bb92f0c Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Mon, 12 Jan 2026 11:13:48 -0600 Subject: [PATCH] Change exceeding and nearing limits to account for the 1000th card (instead of 1001) --- saas/app/models/account/limited.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/saas/app/models/account/limited.rb b/saas/app/models/account/limited.rb index 8e846a1172..2918e90a32 100644 --- a/saas/app/models/account/limited.rb +++ b/saas/app/models/account/limited.rb @@ -21,11 +21,11 @@ def billed_bytes_used end def nearing_plan_cards_limit? - plan.limit_cards? && remaining_cards_count < NEAR_CARD_LIMIT_THRESHOLD + plan.limit_cards? && remaining_cards_count <= NEAR_CARD_LIMIT_THRESHOLD end def exceeding_card_limit? - plan.limit_cards? && billed_cards_count > plan.card_limit + plan.limit_cards? && billed_cards_count >= plan.card_limit end def nearing_plan_storage_limit?