Skip to content

Commit 2e06ded

Browse files
authored
Merge pull request #2437 from strongloop/remove_rectify_change
Remove `rectifyAllChanges` and `rectifyChange`
2 parents 45e523d + 3bf9065 commit 2e06ded

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lib/persisted-model.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -896,23 +896,6 @@ module.exports = function(registry) {
896896
});
897897
}
898898

899-
if (options.trackChanges) {
900-
// Deprecated (legacy) exports kept for backwards compatibility
901-
// TODO(bajtos) Hide these two exports in LoopBack 3.0
902-
setRemoting(PersistedModel, 'rectifyAllChanges', {
903-
description: 'Rectify all Model changes.',
904-
accessType: 'WRITE',
905-
http: { verb: 'post', path: '/rectify-all' },
906-
});
907-
908-
setRemoting(PersistedModel, 'rectifyChange', {
909-
description: 'Tell loopback that a change to the model with the given id has occurred.',
910-
accessType: 'WRITE',
911-
accepts: { arg: 'id', type: 'any', http: { source: 'path' }},
912-
http: { verb: 'post', path: '/:id/rectify-change' },
913-
});
914-
}
915-
916899
setRemoting(PersistedModel, 'createChangeStream', {
917900
description: 'Create a change stream.',
918901
accessType: 'READ',

0 commit comments

Comments
 (0)