better logs

This commit is contained in:
D065023
2021-06-15 15:02:13 +02:00
parent 4a8b85f227
commit db595a9635

View File

@@ -42,7 +42,7 @@ module.exports = async()=>{ // called by server.js
// Subscribe to changes in the S4 origin of Suppliers data // 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 S4bupa.on ('BusinessPartner.Changed', async msg => { //> would be great if we had batch events from S/4
console.log(">>", msg.event) console.log(">>", msg.event, msg.data)
const ID = msg.data.BusinessPartner; const ID = msg.data.BusinessPartner;
let replica = await SELECT.one('ID').from(Suppliers).where({ID}); let replica = await SELECT.one('ID').from(Suppliers).where({ID});
if (replica) await replicate(ID); if (replica) await replicate(ID);