From baca5b7aa339e8739e5c80810cecb7349a198141 Mon Sep 17 00:00:00 2001 From: Dan Aprahamian Date: Mon, 12 Mar 2018 17:27:18 -0400 Subject: [PATCH] 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. --- lib/aggregation_cursor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/aggregation_cursor.js b/lib/aggregation_cursor.js index 8ad940bdd4..9fcae6a64d 100644 --- a/lib/aggregation_cursor.js +++ b/lib/aggregation_cursor.js @@ -89,7 +89,9 @@ var AggregationCursor = function(bson, ns, cmd, options, topology, topologyOptio // Topology Options topologyOptions: topologyOptions, // Promise library - promiseLibrary: promiseLibrary + promiseLibrary: promiseLibrary, + // Optional ClientSession + session: options.session }; };