Fixed: missing await srv.emit

This commit is contained in:
Daniel
2020-12-17 16:37:30 +01:00
committed by Daniel Hutzel
parent 86e5c429bd
commit ea6e274810
8 changed files with 17 additions and 12 deletions

View File

@@ -1,12 +1,12 @@
using { sap.capire.bookshop as my } from '../db/schema';
service CatalogService @(path:'/browse') {
@readonly entity Books as SELECT from my.Books {*,
@readonly entity Books as SELECT from my.Books { *,
author.name as author
} excluding { createdBy, modifiedBy };
@readonly entity ListOfBooks as SELECT from Books
excluding { descr, stock };
excluding { descr };
@requires: 'authenticated-user'
action submitOrder ( book: Books:ID, amount: Integer ) returns { stock: Integer };