Skip to content

Commit 02729dc

Browse files
daprahamianmbroadst
authored andcommitted
chore(executeOperation): use owner symbol instead of owner obj
1 parent b60ac28 commit 02729dc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
},
99
"globals": {
1010
"Promise": true,
11-
"Set": true
11+
"Set": true,
12+
"Symbol": true
1213
},
1314
"parserOptions": {
1415
"ecmaVersion": 2017

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ const executeOperation = (topology, operation, args, options) => {
382382
if (!options.skipSessions && topology.hasSessionSupport()) {
383383
opOptions = args[args.length - 2];
384384
if (opOptions == null || opOptions.session == null) {
385-
owner = {};
385+
owner = Symbol();
386386
session = topology.startSession({ owner });
387387
const optionsIndex = args.length - 2;
388388
args[optionsIndex] = Object.assign({}, args[optionsIndex], { session: session });

0 commit comments

Comments
 (0)