diff --git a/app/Console/Commands/DeviceLogSyncCommand.php b/app/Console/Commands/DeviceLogSyncCommand.php index 51df568..e727132 100644 --- a/app/Console/Commands/DeviceLogSyncCommand.php +++ b/app/Console/Commands/DeviceLogSyncCommand.php @@ -60,7 +60,7 @@ class DeviceLogSyncCommand extends Command protected function performSync(Carbon $start, Carbon $end): void { /** @var \Illuminate\Database\Eloquent\Collection */ - $devices = Device::poweredBy($this->argument('factory'))->get(); + $devices = Device::with(['factory'])->poweredBy($this->argument('factory'))->get(); foreach ($devices as $device) { $this->info('==========================================');