diff --git a/app/Console/Commands/ResetTraffic.php b/app/Console/Commands/ResetTraffic.php index 6abfda2a..b93d9168 100644 --- a/app/Console/Commands/ResetTraffic.php +++ b/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; }