From f0f78aa038ae5f2bb0feddad4e2cb23609299158 Mon Sep 17 00:00:00 2001 From: Jing Li Date: Mon, 3 Jun 2024 19:43:23 +0800 Subject: [PATCH] Update --- app/Console/Commands/BiAng/WormStatisticsSyncCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);