Skip to content

Commit

Permalink
fixed resolve whole
Browse files Browse the repository at this point in the history
  • Loading branch information
capaj committed Jan 19, 2016
1 parent d23d367 commit 8ef7009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mr-rpc-methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ var expose = function (model, schema, opts) {
} else {
debug('document ', id, ' saved, version now ', doc.__v)
if (resolveWhole) {
return resolve(resolveWhole)
return resolve(doc.toObject())
}
resolve(doc.__v) // we don't resolve with new document because when you want to display
// current version of document, just use liveQuery
Expand Down

0 comments on commit 8ef7009

Please sign in to comment.