Explorar o código

add onetime plan

Tokumeikoi %!s(int64=5) %!d(string=hai) anos
pai
achega
dea26121fc
Modificáronse 1 ficheiros con 1 adicións e 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