From 9277aa12daffc8b81575cde434aee976a60adf24 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 8 Jun 2021 18:23:52 +0200 Subject: [PATCH] removed obsolete cds.emit monky patch --- fiori/server.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/fiori/server.js b/fiori/server.js index cdb091a5..5974d6c2 100644 --- a/fiori/server.js +++ b/fiori/server.js @@ -1,13 +1,5 @@ const cds = require ('@sap/cds') -cds.emit = function (event,...args) { - switch (event) { - case 'served': return this.served = Promise.all (this.listeners(event).map (each => each.call(this,...args))) - case 'listening': return this.served.then (()=> this.__proto__.emit.call (this, event, ...args)) - default: return this.__proto__.emit.call (this, event, ...args) - } -} - cds.once('bootstrap',(app)=>{ app.serve ('/orders/webapp').from('@capire/orders','app/orders/webapp') app.serve ('/bookshop').from('@capire/bookshop','app/vue')