From 1b858486d6f56e0b45c84b691b99ccfebee6902e Mon Sep 17 00:00:00 2001 From: chinlinlee Date: Sat, 2 Dec 2023 11:01:32 +0800 Subject: [PATCH] fix: the argument should be work item model obj --- .../dicom-web/controller/UPS-RS/service/subscribe.service.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api-sql/dicom-web/controller/UPS-RS/service/subscribe.service.js b/api-sql/dicom-web/controller/UPS-RS/service/subscribe.service.js index b9b6f3c4..01fdd617 100644 --- a/api-sql/dicom-web/controller/UPS-RS/service/subscribe.service.js +++ b/api-sql/dicom-web/controller/UPS-RS/service/subscribe.service.js @@ -120,10 +120,9 @@ class SqlSubscribeService extends SubscribeService { let notSubscribedWorkItems = await this.findNotSubscribedWorkItems(); for(let notSubscribedWorkItem of notSubscribedWorkItems) { - let workItemDicomJson = new DicomJsonModel(notSubscribedWorkItem); - await this.createOrUpdateSubscription(workItemDicomJson); + await this.createOrUpdateSubscription(notSubscribedWorkItem); - this.addUpsEvent(UPS_EVENT_TYPE.StateReport, workItemDicomJson.dicomJson.upsInstanceUID, this.stateReportOf(workItemDicomJson), [this.subscriberAeTitle]); + this.addUpsEvent(UPS_EVENT_TYPE.StateReport, notSubscribedWorkItem.upsInstanceUID, this.stateReportOf(notSubscribedWorkItem.toDicomJsonModel()), [this.subscriberAeTitle]); } }