We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d02710 commit c4c547dCopy full SHA for c4c547d
lib/meters.js
@@ -116,7 +116,7 @@ export async function update({meter, explain = false} = {}) {
116
117
const result = await collection.updateOne(
118
query, {$set}, database.writeOptions);
119
- // in mongodb driver 4 or greater executionStatus are replaced
+ // in mongodb driver 4 or greater executionStats are replaced
120
// n previously counted the number of records that matched a query
121
// so we need the total of modified and upserted to track record change
122
const n = result.modifiedCount + result.upsertedCount;
0 commit comments