Skip to content

Commit

Permalink
fix(mongodb): query object incorrect in checkPatientExist
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Dec 20, 2023
1 parent e3d951c commit 50429e6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ class CreateMwlItemService {
async checkPatientExist() {
let patientID = this.requestMwlItemDicomJsonModel.getString("00100020");
let patientCount = await PatientModel.count({
where: {
x00100020: patientID
}
patientID
});
if (patientCount <= 0) {
throw new DicomWebServiceError(
Expand Down

0 comments on commit 50429e6

Please sign in to comment.