MCPcopy
hub / github.com/strongloop/loopback / changeHandler

Function changeHandler

lib/persisted-model.js:1902–1909  ·  view source on GitHub ↗
(ctx, next)

Source from the content-addressed store, hash-verified

1900 return cb.promise;
1901
1902 function changeHandler(ctx, next) {
1903 const change = createChangeObject(ctx, 'save');
1904 if (change) {
1905 changes.write(change);
1906 }
1907
1908 next();
1909 }
1910
1911 function deleteHandler(ctx, next) {
1912 const change = createChangeObject(ctx, 'delete');

Callers

nothing calls this directly

Calls 2

createChangeObjectFunction · 0.85
nextFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…