소스 검색

update: reset traffic

tokumeikoi 3 년 전
부모
커밋
9d96d68f12
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/Console/Commands/ResetTraffic.php

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

@@ -64,12 +64,12 @@ class ResetTraffic extends Command
                     break;
                 }
                 case 0: {
-                    $builder = $this->builder->where('plan_id', $plan->id);
+                    $builder = with(clone($this->builder))->where('plan_id', $plan->id);
                     $this->resetByMonthFirstDay($builder);
                     break;
                 }
                 case 1: {
-                    $builder = $this->builder->where('plan_id', $plan->id);
+                    $builder = with(clone($this->builder))->where('plan_id', $plan->id);
                     $this->resetByExpireDay($builder);
                     break;
                 }