Explorar el Código

update: fix capacity

tokumeikoi hace 2 años
padre
commit
bd1ec0fe89
Se han modificado 1 ficheros con 1 adiciones y 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;
     }