Skip to content

Commit

Permalink
Remove rectifyAllChanges and rectifyChange
Browse files Browse the repository at this point in the history
  • Loading branch information
0candy committed Jun 20, 2016
1 parent 45e523d commit 3bf9065
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions lib/persisted-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -896,23 +896,6 @@ module.exports = function(registry) {
});
}

if (options.trackChanges) {
// Deprecated (legacy) exports kept for backwards compatibility
// TODO(bajtos) Hide these two exports in LoopBack 3.0
setRemoting(PersistedModel, 'rectifyAllChanges', {
description: 'Rectify all Model changes.',
accessType: 'WRITE',
http: { verb: 'post', path: '/rectify-all' },
});

setRemoting(PersistedModel, 'rectifyChange', {
description: 'Tell loopback that a change to the model with the given id has occurred.',
accessType: 'WRITE',
accepts: { arg: 'id', type: 'any', http: { source: 'path' }},
http: { verb: 'post', path: '/:id/rectify-change' },
});
}

setRemoting(PersistedModel, 'createChangeStream', {
description: 'Create a change stream.',
accessType: 'READ',
Expand Down

0 comments on commit 3bf9065

Please sign in to comment.