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

Commit

Permalink
fix(transactions): send recovery token on abortTransaction
Browse files Browse the repository at this point in the history
Fixes NODE-1961
  • Loading branch information
daprahamian committed Apr 30, 2019
1 parent b958513 commit 1fa5763
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 @@ -474,7 +474,7 @@ function endTransaction(session, commandName, callback) {
}

if (
commandName === 'commitTransaction' &&
// Assumption here that commandName is "commitTransaction" or "abortTransaction"
session.transaction.recoveryToken &&
supportsRecoveryToken(session)
) {
Expand Down

0 comments on commit 1fa5763

Please sign in to comment.