diff --git a/suppliers/srv/mashup.js b/suppliers/srv/mashup.js index 3de8f285..52784f5b 100644 --- a/suppliers/srv/mashup.js +++ b/suppliers/srv/mashup.js @@ -40,6 +40,7 @@ module.exports = async()=>{ // called by server.js // Subscribe to changes in the S4 origin of Suppliers data S4bupa.on ('BusinessPartner.Changed', async msg => { //> would be great if we had batch events from S/4 await new Promise( resolve => setTimeout( resolve, 1000 )); + console.log(">>", msg.event) const id = msg.data.BusinessPartner; let replica = await SELECT.one('ID').from (Suppliers) .where ('ID =', id); if (replica) await replicate(id);