Remove `rectifyAllChanges` and `rectifyChange`

This commit is contained in:
Candy 2016-06-15 11:15:49 -04:00
parent 45e523d66c
commit 3bf9065203
1 changed files with 0 additions and 17 deletions

View File

@ -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',