Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
fix(transactions): only send recovery token on commitTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
daprahamian authored and mbroadst committed Mar 7, 2019
1 parent aad05df commit 923a089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sessions.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ function endTransaction(session, commandName, callback) {
return commandName === 'commitTransaction' ? err : null;
}

if (session.transaction.recoveryToken) {
if (commandName === 'commitTransaction' && session.transaction.recoveryToken) {
command.recoveryToken = session.transaction.recoveryToken;
}

Expand Down

0 comments on commit 923a089

Please sign in to comment.