Skip to content

Commit

Permalink
refactor: import DicomBulkDataModel property instead of import all
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Jan 21, 2024
1 parent e3fa12b commit b68a123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/DICOM/dicom-json-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const {
} = require("./dcmtk");
const flat = require("flat");
const shortHash = require("shorthash2");
const dicomBulkDataModel = require("@dbModels/dicomBulkData.model");
const { DicomBulkDataModel } = require("@dbModels/dicomBulkData.model");
const { logger } = require("../../utils/logs/log");
const { tagsNeedStore } = require("./dicom-tags-mapping");

Expand Down Expand Up @@ -591,7 +591,7 @@ class BulkData {
binaryValuePath: this.pathOfBinaryProperty
};

await dicomBulkDataModel.createOrUpdateBulkData(
await DicomBulkDataModel.createOrUpdateBulkData(
{
instanceUID: this.uidObj.instanceUID,
binaryValuePath: this.pathOfBinaryProperty
Expand Down

0 comments on commit b68a123

Please sign in to comment.