From 430e2cc5a19cec13d9ae5428b33231a05cd88d5b Mon Sep 17 00:00:00 2001 From: chinlinlee Date: Sun, 19 Nov 2023 13:09:47 +0800 Subject: [PATCH] fix: missing await for async function --- .../controller/UPS-RS/service/create-workItem.service.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/dicom-web/controller/UPS-RS/service/create-workItem.service.js b/api/dicom-web/controller/UPS-RS/service/create-workItem.service.js index f715a93a..ab552105 100644 --- a/api/dicom-web/controller/UPS-RS/service/create-workItem.service.js +++ b/api/dicom-web/controller/UPS-RS/service/create-workItem.service.js @@ -24,9 +24,9 @@ class CreateWorkItemService extends BaseWorkItemService { let uid = _.get(this.request, "query.workitem", await UIDUtils.createUID() ); - this.dataAdjustBeforeCreatingUps(uid); - this.validateWorkItem(uid); - + await this.dataAdjustBeforeCreatingUps(uid); + await this.validateWorkItem(uid); + let patient = await this.findOneOrCreatePatient(); let workItem = new workItemModel(this.requestWorkItem.dicomJson); let savedWorkItem = await workItem.save();