diff --git a/app/Console/Commands/BiAng/WormStatisticsSyncCommand.php b/app/Console/Commands/BiAng/WormStatisticsSyncCommand.php index d27658a..29c05e2 100644 --- a/app/Console/Commands/BiAng/WormStatisticsSyncCommand.php +++ b/app/Console/Commands/BiAng/WormStatisticsSyncCommand.php @@ -55,7 +55,7 @@ class WormStatisticsSyncCommand extends Command $latestReportedAt = WormReport::where('device_id', $device->id)->latest('reported_at')->value('reported_at'); - $start = $latestReportedAt ? $latestReportedAt->copy() : $today->copy(); + $start = $latestReportedAt ? $latestReportedAt->copy() : $today->copy()->subDays(179); $days = $start->diffInDays($today, false);