Skip to content

Commit

Permalink
feat: add file size field in dicomToJpegTask
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Aug 25, 2021
1 parent 76a02ff commit 529e84a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/dicom-web/stow/controller/postSTOW.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ async function generateJpeg(dicomJson, dicomFile, jpegFile) {
instanceUID: instanceUID,
status: false,
message: "processing",
taskTime: new Date()
taskTime: new Date(),
finishedTime: null,
fileSize: (fs.statSync(dicomFile).size / 1024 / 1024).toFixed(3)
});
let windowCenter = _.get(dicomJson, '00281050.Value.0');
let windowWidth = _.get(dicomJson, '00281051.Value.0');
Expand Down

0 comments on commit 529e84a

Please sign in to comment.