Skip to content

Commit baca5b7

Browse files
daprahamianmbroadst
authored andcommitted
fix(AggregationCursor): adding session tracking to AggregationCursor
The session was not stored on the state of the AggregationCursor, so we are adding it on here.
1 parent 3f60625 commit baca5b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/aggregation_cursor.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ var AggregationCursor = function(bson, ns, cmd, options, topology, topologyOptio
8989
// Topology Options
9090
topologyOptions: topologyOptions,
9191
// Promise library
92-
promiseLibrary: promiseLibrary
92+
promiseLibrary: promiseLibrary,
93+
// Optional ClientSession
94+
session: options.session
9395
};
9496
};
9597

0 commit comments

Comments
 (0)