Skip to content

Commit 756b5ca

Browse files
committed
group bug fix
1 parent 80eec57 commit 756b5ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/collection.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ export class Collection implements OperationParent {
15361536
let reduce = args.length ? args.shift() : undefined;
15371537
let finalize = args.length ? args.shift() : undefined;
15381538
let command = args.length ? args.shift() : undefined;
1539-
const options = args.length ? args.shift() || {} : {};
1539+
let options = args.length ? args.shift() || {} : {};
15401540

15411541
// Make sure we are backward compatible
15421542
if (!(typeof finalize === 'function')) {
@@ -1564,6 +1564,8 @@ export class Collection implements OperationParent {
15641564
// Set up the command as default
15651565
command = command == null ? true : command;
15661566

1567+
options = resolveInheritedOptions(this, options);
1568+
15671569
if (command == null) {
15681570
return executeOperation(
15691571
getTopology(this),

0 commit comments

Comments
 (0)