Skip to content

Commit

Permalink
fix: missing create series query task inject proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Aug 21, 2023
1 parent 54d0c4b commit 22f5f86
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dimse/seriesQueryTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 } */
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 22f5f86

Please sign in to comment.