Skip to content

Commit

Permalink
Clone all objects passing in-to and out-of the in memory store
Browse files Browse the repository at this point in the history
  • Loading branch information
theninj4 committed Jun 8, 2016
1 parent 3232ec9 commit d1462fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/MemoryHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,8 @@ MemoryStore.prototype.delete = function(request, callback) {
partialResource contains a subset of changes that need to be merged over the original.
*/
MemoryStore.prototype.update = function(request, partialResource, callback) {
var self = this;
// Find the requested resource
self.find(request, function(err, theResource) {
this.find(request, function(err, theResource) {
if (err) return callback(err);

// Merge the partialResource over the original
Expand Down

0 comments on commit d1462fc

Please sign in to comment.