Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit edbca44

Browse files
committed
removed obsolete cds.emit monky patch
1 parent 02f19e2 commit edbca44

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

fiori/server.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
const cds = require ('@sap/cds')
22

3-
cds.emit = function (event,...args) {
4-
switch (event) {
5-
case 'served': return this.served = Promise.all (this.listeners(event).map (each => each.call(this,...args)))
6-
case 'listening': return this.served.then (()=> this.__proto__.emit.call (this, event, ...args))
7-
default: return this.__proto__.emit.call (this, event, ...args)
8-
}
9-
}
10-
113
cds.once('bootstrap',(app)=>{
124
app.serve ('/orders/webapp').from('@capire/orders','app/orders/webapp')
135
app.serve ('/bookshop').from('@capire/bookshop','app/vue')

0 commit comments

Comments
 (0)