diff --git a/app/Services/Pacs/Sync/Pipes/ArchiveStudies.php b/app/Services/Pacs/Sync/Pipes/ArchiveStudies.php index b193eda..ab0fa14 100644 --- a/app/Services/Pacs/Sync/Pipes/ArchiveStudies.php +++ b/app/Services/Pacs/Sync/Pipes/ArchiveStudies.php @@ -20,7 +20,7 @@ public function __invoke(StudiesSync $sync, Closure $next): StudiesSync } $payload = [ - 'is_archived' => true, + 'archived_at' => now(), 'updated_at' => now(), ]; DB::table('studies')->where('id', $study_id)->update($payload); @@ -30,7 +30,7 @@ public function __invoke(StudiesSync $sync, Closure $next): StudiesSync ->category(Category::SYSTEM) ->on($study_id) ->orthanc($orthanc_uuid) - ->did(Activity::Study_Archived) + ->did(Activity::Study_Archive) ->log(false); }