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

Function observeOptionsBeforeDelete

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

Source from the content-addressed store, hash-verified

390 }
391
392 function observeOptionsBeforeDelete() {
393 const Model = arguments[0] || Product;
394 Model.observe('before delete', function(ctx, next) {
395 actualOptions = ctx.options;
396 next();
397 });
398 }
399
400 function observeOptionsOnAccess() {
401 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…