Skip to content

Commit

Permalink
Post TechEd cosmetics (#619)
Browse files Browse the repository at this point in the history
* Post TechEd cosmetics

* Update package-lock.json
  • Loading branch information
danjoa committed Jul 15, 2024
1 parent 3161758 commit 82c633c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bookshop/db/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -18,4 +18,4 @@ module.exports = cds.on('served', ()=> cds.run(
[ 'ILS', '₪', 'Shekel' ],
[ 'JPY', '¥', 'Yen' ],
)
))
)
2 changes: 0 additions & 2 deletions bookshop/index.js

This file was deleted.

5 changes: 4 additions & 1 deletion bookshop/srv/cat-service.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@
},
"license": "SEE LICENSE IN LICENSE",
"private": true
}
}

0 comments on commit 82c633c

Please sign in to comment.