diff --git a/bookshop/readme.md b/bookshop/readme.md index 7bc3af7e..7b568e36 100644 --- a/bookshop/readme.md +++ b/bookshop/readme.md @@ -1,6 +1,6 @@ # Bookshop Getting Started Sample -This sample introduces the essential tasks in the development of CAP-based services as also covered in the [Getting Started guide in capire](https://cap.cloud.sap/docs/get-started/in-a-nutshell). +This stand-alone sample introduces the essential tasks in the development of CAP-based services as also covered in the [Getting Started guide in capire](https://cap.cloud.sap/docs/get-started/in-a-nutshell). ## Hypothetical Use Cases diff --git a/reviews/test/bookshop/schema.cds b/reviews/test/bookshop/schema.cds index 39fdfb35..968a62de 100644 --- a/reviews/test/bookshop/schema.cds +++ b/reviews/test/bookshop/schema.cds @@ -11,3 +11,12 @@ extend Books with { /** Average rating */ rating : Reviews.rating; } + +////////////////////////////////////////////////////////////////////////////// +// BUG in compiler: we have to force-include cat-service after admin-service +// see cap/issues#111; when fixed we can rempve these lines +// + using from '@capire/bookshop/srv/admin-service'; + using from '@capire/bookshop/srv/cat-service'; +// +////////////////////////////////////////////////////////////////////////////// diff --git a/reviews/test/bookshop/server.js b/reviews/test/bookshop/server.js index 540c6d65..369af0f1 100644 --- a/reviews/test/bookshop/server.js +++ b/reviews/test/bookshop/server.js @@ -20,7 +20,6 @@ cds.on('listening', async()=>{ // return tx.update (Books, subject) .with ({rating}) }) - console.log (Reviews.name) // delegate requests to read reviews to ReviewsService CatalogService.impl (srv => { srv.on ('READ', 'Books/reviews', (req) => {