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

Function observeOptionsBeforeSave

test/context-options.test.js:384–390  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

382 }
383
384 function observeOptionsBeforeSave() {
385 const Model = arguments[0] || Product;
386 Model.observe('before save', function(ctx, next) {
387 actualOptions = ctx.options;
388 next();
389 });
390 }
391
392 function observeOptionsBeforeDelete() {
393 const Model = arguments[0] || Product;

Callers 1

Calls 1

nextFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…