Skip to content

Commit

Permalink
do not pass explicit session into state machine helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Apr 27, 2023
1 parent b42a998 commit 7664801
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bindings/node/lib/stateMachine.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,7 @@ module.exports = function (modules) {
.db(dbName)
.listCollections(filter, {
promoteLongs: false,
promoteValues: false,
session: this.options.session
promoteValues: false
})
.toArray()
.then(
Expand Down Expand Up @@ -476,7 +475,7 @@ module.exports = function (modules) {
client
.db(dbName)
.collection(collectionName, { readConcern: { level: 'majority' } })
.find(filter, { session: this.options.session })
.find(filter)
.toArray()
.then(
keys => {
Expand Down

0 comments on commit 7664801

Please sign in to comment.