diff --git a/be/app/Services/Karat/KaratService.php b/be/app/Services/Karat/KaratService.php index 66eebca..4b998d9 100644 --- a/be/app/Services/Karat/KaratService.php +++ b/be/app/Services/Karat/KaratService.php @@ -152,10 +152,8 @@ class KaratService $notSyncedTimesheets->each(function ($timesheet) { echo $timesheet->id . "\n"; - if (!$timesheet->subtask || !$timesheet->subtask->mastertask->project) - return false; - - $this->syncTimesheet($timesheet); + if ($timesheet->subtask && $timesheet->subtask->mastertask->project) + $this->syncTimesheet($timesheet); }); }