#5666 - Loggable to mixin #1826
|
@ -1,20 +0,0 @@
|
|||
|
||||
const loggable = require('vn-loopback/util/log');
|
||||
|
||||
module.exports = function(Self, options) {
|
||||
Self.once('attached', function(ctx) {
|
||||
});
|
||||
|
||||
Self.observe('before save', async function(ctx, next) {
|
||||
await loggable.translateValues(Self, ctx.currentInstance);
|
||||
});
|
||||
|
||||
let Mixin = {
|
||||
|
||||
};
|
||||
|
||||
for (let method in Mixin) {
|
||||
if (!Self.prototype[method])
|
||||
Self.prototype[method] = Mixin[method];
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue