From 22f5f86f1826f1a400ea3a6e77b86aa2b6bb209d Mon Sep 17 00:00:00 2001 From: "CHIN\\a5566" Date: Mon, 21 Aug 2023 13:39:54 +0800 Subject: [PATCH] fix: missing create series query task inject proxy --- dimse/seriesQueryTask.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dimse/seriesQueryTask.js b/dimse/seriesQueryTask.js index 2cdb9791..f3e6d03b 100644 --- a/dimse/seriesQueryTask.js +++ b/dimse/seriesQueryTask.js @@ -6,12 +6,12 @@ const { JsStudyQueryTask } = require("./studyQueryTask"); const dicomSeriesModel = require("@models/mongodb/models/dicomSeries"); const { SeriesQueryTask } = require("@java-wrapper/org/github/chinlinlee/dcm777/net/SeriesQueryTask"); const { Attributes } = require("@dcm4che/data/Attributes"); +const { createSeriesQueryTaskInjectProxy } = require("@java-wrapper/org/github/chinlinlee/dcm777/net/SeriesQueryTaskInject"); class JsSeriesQueryTask extends JsStudyQueryTask { constructor(as, pc, rq, keys) { super(as, pc, rq, keys); - this.seriesInit = false; this.seriesCursor = null; this.series = null; /** @type { Attributes | null } */ @@ -96,6 +96,12 @@ class JsSeriesQueryTask extends JsStudyQueryTask { return !_.isNull(this.seriesAttr); } }; + + if (!this.seriesQueryTaskInjectProxy) { + this.seriesQueryTaskInjectProxy = createSeriesQueryTaskInjectProxy(this.seriesQueryTaskInjectMethods); + } + + return this.seriesQueryTaskInjectProxy; } async getNextSeriesCursor() {