From 9c6dddb7a0c718ae78f93f51cc2b3c3e706fa615 Mon Sep 17 00:00:00 2001 From: Dr Masroor Ehsan Date: Tue, 28 Jan 2025 22:04:26 +0600 Subject: [PATCH] FIX / UPDATE changes --- app/Services/Pacs/Sync/Pipes/ArchiveStudies.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }