Skip to content

Commit

Permalink
fix: the argument should be work item model obj
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Dec 2, 2023
1 parent 0a43a4f commit 1b85848
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
}

Expand Down

0 comments on commit 1b85848

Please sign in to comment.