Update
parent
23745ee118
commit
f0f78aa038
|
|
@ -55,7 +55,7 @@ class WormStatisticsSyncCommand extends Command
|
||||||
|
|
||||||
$latestReportedAt = WormReport::where('device_id', $device->id)->latest('reported_at')->value('reported_at');
|
$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);
|
$days = $start->diffInDays($today, false);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue