Explorar o código

update: fix capacity

tokumeikoi %!s(int64=2) %!d(string=hai) anos
pai
achega
bd1ec0fe89
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Services/PlanService.php

+ 1 - 1
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;
     }