【发布时间】:2020-01-07 11:02:52
【问题描述】:
Product.observe('after save', function(ctx, next){
productHelper.calProduct(ctx.instance);
next();
});
我有上述方法可以在产品更新后执行某些操作,但“保存后”也由创建触发。如何只通过更新而不是创建触发?
非常感谢!
环回": "^3.22.0" “连接器”:“postgresql”
【问题讨论】:
标签: postgresql loopbackjs after-save