From bd1ec0fe89866cc402a45bf3fe96692e015cba9b Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Wed, 3 Aug 2022 01:16:56 +0800 Subject: [PATCH] update: fix capacity --- app/Services/PlanService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/PlanService.php b/app/Services/PlanService.php index e0e00762..c8e3bd66 100644 --- a/app/Services/PlanService.php +++ b/app/Services/PlanService.php @@ -19,7 +19,7 @@ class PlanService { if ($this->plan->capacity_limit === NULL) return true; $count = self::countActiveUsers(); - $count = $count[$this->plan->plan_id]; + $count = $count[$this->plan->id]; return ($this->plan->capacity_limit - $count) > 0; }