minor
This commit is contained in:
parent
47d9f598ca
commit
4b087124b2
@ -20,6 +20,10 @@ public function __invoke(StudiesSync $sync, Closure $next): StudiesSync
|
||||
}
|
||||
|
||||
$payload = $sync->transformData($study);
|
||||
if (empty($payload)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$row = Study::create($payload['study']);
|
||||
$payload['details']['study_id'] = $row->id;
|
||||
$payload['details']['orthanc_uuid'] = $orthanc_uuid;
|
||||
|
@ -25,6 +25,10 @@ public function __invoke(StudiesSync $sync, Closure $next): StudiesSync
|
||||
}
|
||||
|
||||
$payload = $sync->transformData($study);
|
||||
if (empty($payload)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
unset($payload['study']['orthanc_uuid']);
|
||||
$payload['study']['updated_at'] = now();
|
||||
DB::table('studies')->where('id', $study_id)->update($payload['study']);
|
||||
|
Loading…
Reference in New Issue
Block a user