getClient()->getStudiesIds(); } catch (Exception $e) { Log::error($e->getMessage()); } if (! empty($study_ids)) { $sync->setStudyIds($study_ids); } return $next($sync); } }