Skip to content

Commit

Permalink
Minimizing data transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
Neamar committed Jan 15, 2015
1 parent 7c0ed88 commit 4c59e2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = function(path, document, changes, cb) {
hash: hash
};

anyfetch.getDocuments({'@hash': hash}, cb);
anyfetch.getDocuments({'@hash': hash, 'fields': 'data'}, cb);
},
function deleteOldDocuments(res, cb) {
var documents = res.body.data;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"async": "0.9.x",
"anyfetch-hydrater": "^2.0.6",
"anyfetch": "^2.1.3"
"anyfetch": "^2.1.8"
},
"devDependencies": {
"mocha": "^2.0.1",
Expand Down

0 comments on commit 4c59e2a

Please sign in to comment.