Remove `rectifyAllChanges` and `rectifyChange`
This commit is contained in:
parent
45e523d66c
commit
3bf9065203
|
@ -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', {
|
setRemoting(PersistedModel, 'createChangeStream', {
|
||||||
description: 'Create a change stream.',
|
description: 'Create a change stream.',
|
||||||
accessType: 'READ',
|
accessType: 'READ',
|
||||||
|
|
Loading…
Reference in New Issue