Skip to content

Commit

Permalink
feat(mongo): use countDocuments instead of count
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Dec 23, 2023
1 parent 0e96bde commit 47769a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class CreateMwlItemService {

async checkPatientExist() {
let patientID = this.requestMwlItemDicomJsonModel.getString("00100020");
let patientCount = await PatientModel.count({
let patientCount = await PatientModel.countDocuments({
patientID
});
if (patientCount <= 0) {
Expand Down

0 comments on commit 47769a3

Please sign in to comment.