FIX - limit scope to dicom server

This commit is contained in:
Dr Masroor Ehsan 2025-01-28 22:24:54 +06:00
parent 658adbb6be
commit 7455709731

View File

@ -15,6 +15,7 @@ public function __invoke(StudiesSync $sync, Closure $next): StudiesSync
$sync->resetQueues(); $sync->resetQueues();
$studies = DB::table('studies') $studies = DB::table('studies')
->where('dicom_server_id', $sync->getDicomServer()->id)
->whereNull('archived_at') ->whereNull('archived_at')
->get(['orthanc_uuid', 'workflow_level']) ->get(['orthanc_uuid', 'workflow_level'])
->pluck('workflow_level', 'orthanc_uuid'); ->pluck('workflow_level', 'orthanc_uuid');