Merged from main

This commit is contained in:
Daniel
2022-05-31 14:54:11 +02:00
6 changed files with 41 additions and 25 deletions

View File

@@ -2,7 +2,7 @@ import cds from '@sap/cds'
export class CatalogService extends cds.ApplicationService { init(){
const { Books } = cds.entities ('sap.capire.bookshop')
const { Books } = this.entities ('sap.capire.bookshop')
// Reduce stock of ordered books if available stock suffices
this.on ('submitOrder', async req => {