Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
fix(get-more): documents are already returned as raw in this case
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Feb 12, 2019
1 parent e7e1775 commit c81f609
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/wireprotocol/get_more.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ function getMore(server, ns, cursorState, batchSize, options, callback) {
return;
}

// Raw, return all the extracted documents
if (cursorState.raw) {
cursorState.documents = response.documents;
cursorState.cursorId = response.cursorId;
return callback(null, response.documents);
}

// We have an error detected
if (response.documents[0].ok === 0) {
return callback(new MongoError(response.documents[0]));
Expand Down

0 comments on commit c81f609

Please sign in to comment.