Merge branch 'master' into cds.context

This commit is contained in:
Daniel
2020-12-17 16:41:08 +01:00
7 changed files with 13 additions and 8 deletions

View File

@@ -48,7 +48,7 @@ module.exports = async()=>{ // called by server.js
//
// Reduce stock of ordered books for orders are created from Orders admin UI
//
OrdersService.on ('OrderChanged', async (msg) => {
OrdersService.on ('OrderChanged', (msg) => {
console.debug ('> received:', msg.event, msg.data)
const { product, deltaAmount } = msg.data
return UPDATE (Books) .where ('ID =', product)