removed obsolete cds.emit monky patch

This commit is contained in:
Daniel
2021-06-08 18:23:52 +02:00
committed by Uwe Klinger
parent d41a9e10ab
commit 9277aa12da

View File

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