Skip to content

Commit 95a7d05

Browse files
mbroadstdaprahamian
authored andcommitted
fix(distinct): return full response if full option was specified
1 parent 3913eaa commit 95a7d05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/operations/distinct.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class DistinctOperation extends CommandOperationV2 {
7171
return;
7272
}
7373

74-
callback(null, result.values);
74+
callback(null, this.options.full ? result : result.values);
7575
});
7676
}
7777
}

0 commit comments

Comments
 (0)