Fixes for check data
This commit is contained in:
parent
e07af07fa4
commit
a35c817388
|
|
@ -184,7 +184,7 @@ class CheckData extends Command
|
|||
private function checkTaskTimeLogs()
|
||||
{
|
||||
\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){
|
||||
if(count($log) > 4){
|
||||
|
|
|
|||
Loading…
Reference in New Issue