Skip to content

Commit

Permalink
fix: incorrect match query in insertMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Nov 3, 2021
1 parent 6198efb commit 0df528d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions api/dicom-web/stow/controller/postSTOW.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,17 @@ function insertMetadata(metadata) {
return new Promise(async (resolve) => {
try {
await mongodb.dicomMetadata.updateOne({
'studyUID': metadata.studyUID,
'seriesUID': metadata.seriesUID,
'instanceUID': metadata.instanceUID
$and: [
{
'studyUID': metadata.studyUID,
},
{
'seriesUID': metadata.seriesUID
},
{
'instanceUID': metadata.instanceUID
}
]
}, metadata, {
upsert: true
});
Expand Down

0 comments on commit 0df528d

Please sign in to comment.