Fix replication error due to removed entity namespace

This commit is contained in:
Uwe Klinger
2021-06-16 07:17:09 +02:00
parent 732b6b081c
commit d2bd4c5bb1

View File

@@ -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