소스 검색

add onetime plan

Tokumeikoi 5 년 전
부모
커밋
dea26121fc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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