From 5c651bc6594d77057f0836e3f180b97b236c06d2 Mon Sep 17 00:00:00 2001 From: Michal Feher Date: Thu, 20 Jul 2023 16:50:45 +0200 Subject: [PATCH] no message --- be/app/Services/Karat/KaratService.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); }); }