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

Commit aad05df

Browse files
daprahamianmbroadst
authored andcommitted
test: re-adding isPinned helper
helper is needed for test runner in node-mongodb-native
1 parent 837f312 commit aad05df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/transactions.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ class Transaction {
115115
return this._recoveryToken;
116116
}
117117

118+
get isPinned() {
119+
return !!this.server;
120+
}
121+
118122
/**
119123
* @ignore
120124
* @return Whether this session is presently in a transaction

0 commit comments

Comments
 (0)