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

Commit 923a089

Browse files
daprahamianmbroadst
authored andcommitted
fix(transactions): only send recovery token on commitTransaction
1 parent aad05df commit 923a089

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sessions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ function endTransaction(session, commandName, callback) {
469469
return commandName === 'commitTransaction' ? err : null;
470470
}
471471

472-
if (session.transaction.recoveryToken) {
472+
if (commandName === 'commitTransaction' && session.transaction.recoveryToken) {
473473
command.recoveryToken = session.transaction.recoveryToken;
474474
}
475475

0 commit comments

Comments
 (0)