From 693f8de259846d3a1ec7aa80696dd4418eafbdfc Mon Sep 17 00:00:00 2001 From: chinlinlee Date: Wed, 20 Dec 2023 10:40:35 +0800 Subject: [PATCH] fix: dicom json model should input object not array --- .../controller/MWL-RS/service/create-mwlitem.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/dicom-web/controller/MWL-RS/service/create-mwlitem.service.js b/api/dicom-web/controller/MWL-RS/service/create-mwlitem.service.js index ae7264ec..b546df2d 100644 --- a/api/dicom-web/controller/MWL-RS/service/create-mwlitem.service.js +++ b/api/dicom-web/controller/MWL-RS/service/create-mwlitem.service.js @@ -21,7 +21,7 @@ class CreateMwlItemService { this.response = res; this.requestMwlItem = /** @type {Object} */(this.request.body); /** @type {DicomJsonModel} */ - this.requestMwlItemDicomJsonModel = new DicomJsonModel(this.requestMwlItem); + this.requestMwlItemDicomJsonModel = new DicomJsonModel(this.requestMwlItem[0]); this.apiLogger = new ApiLogger(req, "Create Mwl Item Service"); this.apiLogger.addTokenValue(); }