Explorar el Código

add onetime plan

Tokumeikoi hace 5 años
padre
commit
dea26121fc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Console/Commands/ResetTraffic.php

+ 1 - 1
app/Console/Commands/ResetTraffic.php

@@ -42,7 +42,7 @@ class ResetTraffic extends Command
     {
         //  get plans of cycle type
         $plans = Plan::where('type', 0)->get();
-        $users = User::whereIn('plan_id', $plans)->get();
+        $users = User::whereIn('plan_id', $plans);
         $users->update([
             'u' => 0,
             'd' => 0