Post TechEd cosmetics (#619)
* Post TechEd cosmetics * Update package-lock.json
This commit is contained in:
@@ -8,7 +8,7 @@ const cds = require('@sap/cds')
|
||||
|
||||
// NOTE: We use cds.on('served') to delay the UPSERTs after the db init
|
||||
// to run after all INSERTs from .csv files happened.
|
||||
module.exports = cds.on('served', ()=> cds.run(
|
||||
module.exports = cds.on('served', ()=>
|
||||
UPSERT.into ('sap.common.Currencies') .columns (
|
||||
[ 'code', 'symbol', 'name' ]
|
||||
) .rows (
|
||||
@@ -18,4 +18,4 @@ module.exports = cds.on('served', ()=> cds.run(
|
||||
[ 'ILS', '₪', 'Shekel' ],
|
||||
[ 'JPY', '¥', 'Yen' ],
|
||||
)
|
||||
))
|
||||
)
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
const { CatalogService } = require('./srv/cat-service')
|
||||
module.exports = { CatalogService }
|
||||
@@ -1,5 +1,6 @@
|
||||
const cds = require('@sap/cds')
|
||||
module.exports = class CatalogService extends cds.ApplicationService { init() {
|
||||
|
||||
class CatalogService extends cds.ApplicationService { init() {
|
||||
|
||||
const { Books } = cds.entities('sap.capire.bookshop')
|
||||
const { ListOfBooks } = this.entities
|
||||
@@ -33,3 +34,5 @@ module.exports = class CatalogService extends cds.ApplicationService { init() {
|
||||
// Delegate requests to the underlying generic service
|
||||
return super.init()
|
||||
}}
|
||||
|
||||
module.exports = CatalogService
|
||||
|
||||
@@ -47,4 +47,4 @@
|
||||
},
|
||||
"license": "SEE LICENSE IN LICENSE",
|
||||
"private": true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user