This commit is contained in:
D065023
2021-06-10 15:59:00 +02:00
parent 5e76c7f52e
commit 4a0db3e259

View File

@@ -39,7 +39,6 @@ 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
await new Promise( resolve => setTimeout( resolve, 1000 ));
console.log(">>", msg.event) console.log(">>", msg.event)
const id = msg.data.BusinessPartner; const id = msg.data.BusinessPartner;
let replica = await SELECT.one('ID').from (Suppliers) .where ('ID =', id); let replica = await SELECT.one('ID').from (Suppliers) .where ('ID =', id);