Skip to content

Commit

Permalink
fix(sql): passing wrong find options in delete patient service
Browse files Browse the repository at this point in the history
- missing `where` property to wrap queries
  • Loading branch information
Chinlinlee committed Dec 24, 2023
1 parent e93603f commit 274eb20
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ class SqlDeletePatientService extends DeletePatientService {
async delete() {
let { patientID } = this.request.params;
let patient = await PatientModel.findOne({
"x00100020": patientID
where: {
"x00100020": patientID
}
});
if (!patient) {
throw new DicomWebServiceError(
Expand Down

0 comments on commit 274eb20

Please sign in to comment.