Skip to content

Commit

Permalink
removed obsolete cds.emit monky patch
Browse files Browse the repository at this point in the history
  • Loading branch information
danjoa committed Jun 8, 2021
1 parent 02f19e2 commit edbca44
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions fiori/server.js
Original file line number Diff line number Diff line change
@@ -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')
Expand Down

0 comments on commit edbca44

Please sign in to comment.