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:
parent
2384c9d841
commit
1ee05eb8a7
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue