This commit is contained in:
parent
aab88dc7de
commit
384b5eb7c7
|
@ -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