Skip to content

Commit

Permalink
fix(mongodb): toDicomJsonModel is not a function that missing consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Dec 22, 2023
1 parent ae4627c commit f08bf44
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions models/mongodb/models/workitems.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const _ = require("lodash");
const { tagsNeedStore } = require("../../DICOM/dicom-tags-mapping");
const { getVRSchema } = require("../schema/dicomJsonAttribute");
const { SUBSCRIPTION_STATE } = require("../../DICOM/ups");
const { DicomJsonModel } = require("@models/DICOM/dicom-json-model");

let workItemSchema = new mongoose.Schema(
{
Expand Down Expand Up @@ -34,6 +35,11 @@ let workItemSchema = new mongoose.Schema(
versionKey: false,
toObject: {
getters: true
},
methods: {
toDicomJsonModel: function () {
return new DicomJsonModel(this);
}
}
}
);
Expand Down

0 comments on commit f08bf44

Please sign in to comment.