From d2bd4c5bb1f6f7adf264f0b29176c3a94c3a7dfe Mon Sep 17 00:00:00 2001 From: Uwe Klinger Date: Wed, 16 Jun 2021 07:17:09 +0200 Subject: [PATCH] Fix replication error due to removed entity namespace --- suppliers/srv/mashup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suppliers/srv/mashup.js b/suppliers/srv/mashup.js index f6917b1a..46d4ec4b 100644 --- a/suppliers/srv/mashup.js +++ b/suppliers/srv/mashup.js @@ -12,7 +12,7 @@ module.exports = async()=>{ // called by server.js const db = await cds.connect.to('db') //> our primary database // Reflect CDS definition of the Suppliers entity - const Suppliers = db.entities["sap.capire.bookshop.Suppliers"]; + const Suppliers = db.entities.Suppliers; admin.prepend (()=>{ //> to ensure our .on handlers below go before the default ones