Selaa lähdekoodia

add onetime plan

Tokumeikoi 5 vuotta sitten
vanhempi
säilyke
dea26121fc
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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
         //  get plans of cycle type
         $plans = Plan::where('type', 0)->get();
         $plans = Plan::where('type', 0)->get();
-        $users = User::whereIn('plan_id', $plans)->get();
+        $users = User::whereIn('plan_id', $plans);
         $users->update([
         $users->update([
             'u' => 0,
             'u' => 0,
             'd' => 0
             'd' => 0