refs 5666 feat: remove loggable.js file
This commit is contained in:
parent
384b5eb7c7
commit
50a97693b9
|
@ -1,15 +0,0 @@
|
|||
const LoopBackContext = require('loopback-context');
|
||||
|
||||
module.exports = function(Self) {
|
||||
Self.setup = function() {
|
||||
Self.super_.setup.call(this);
|
||||
};
|
||||
|
||||
Self.observe('before save', async function(ctx) {
|
||||
ctx.options.httpCtx = LoopBackContext.getCurrentContext();
|
||||
});
|
||||
|
||||
Self.observe('before delete', async function(ctx) {
|
||||
ctx.options.httpCtx = LoopBackContext.getCurrentContext();
|
||||
});
|
||||
};
|
Loading…
Reference in New Issue