From 50fd83fd190c984e5c9523757db2d0ec20398b8c Mon Sep 17 00:00:00 2001 From: Iwona Hahn Date: Wed, 17 Feb 2021 17:53:54 +0100 Subject: [PATCH] cosmetics --- suppliers/srv/mashup.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/suppliers/srv/mashup.js b/suppliers/srv/mashup.js index accf6d79..7185251f 100644 --- a/suppliers/srv/mashup.js +++ b/suppliers/srv/mashup.js @@ -4,10 +4,10 @@ // module.exports = async()=>{ // called by server.js - if (!cds.services.AdminService) return //> mocking S4 service only + if (!cds.services.AdminService) return //> mocking SAP S4/HANA service only // Connect to services we want to mashup below... - const S4bupa = await cds.connect.to('API_BUSINESS_PARTNER') //> external S4 service + const S4bupa = await cds.connect.to('API_BUSINESS_PARTNER') //> external SAP S4/HANA service const admin = await cds.connect.to('AdminService') //> local domain service const db = await cds.connect.to('db') //> our primary database @@ -16,7 +16,7 @@ module.exports = async()=>{ // called by server.js admin.prepend (()=>{ - // Delegate Value Help reads for Suppliers to S4 backend + // Delegate Value Help reads for Suppliers to SAP S4/HANA backend admin.on ('READ', 'Suppliers', async req => { console.log ('>> delegating to S4 service...') return await S4bupa.run(req.query) @@ -35,7 +35,7 @@ module.exports = async()=>{ // called by server.js }) - // Subscribe to changes in the S4 origin of Suppliers data + // Subscribe to changes in the SAP S4/HANA origin of Suppliers data S4bupa.on ('BusinessPartner/Changed', async msg => { let cached = await SELECT('ID').from (Suppliers) .where ('ID in', msg.businessPartner.KEYS)