Deleted instantiation of new Change model.

This PR removes the instantiation of a new change model
as models return from Change.find are already
instances of Change. This solves the duplicate Id issue #649
This commit is contained in:
Berkeley Martinez 2014-10-29 11:34:44 -07:00
parent 2384c9d841
commit 1ee05eb8a7
1 changed files with 0 additions and 1 deletions

View File

@ -407,7 +407,6 @@ module.exports = function(Change) {
this.find(function(err, changes) {
if (err) return cb(err);
changes.forEach(function(change) {
change = new Change(change);
change.rectify();
});
});