Fixes for check data

This commit is contained in:
David Bomba 2025-09-25 08:31:47 +10:00
parent e07af07fa4
commit a35c817388
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ class CheckData extends Command
private function checkTaskTimeLogs() private function checkTaskTimeLogs()
{ {
\App\Models\Task::query()->cursor()->each(function ($task) { \App\Models\Task::query()->cursor()->each(function ($task) {
$time_log = json_decode($task->time_log, true); $time_log = json_decode($task->time_log, true) ?? [];
foreach($time_log as &$log){ foreach($time_log as &$log){
if(count($log) > 4){ if(count($log) > 4){