Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions get-started/bookshop.md
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ class CatalogService extends cds.ApplicationService { init() {
// After READ handler on Books to add discount info
this.after ('READ', 'Books', results => results.forEach (book => {
if (book.stock > 111) book.title += ` -- 11% discount!`
})
}))

return super.init()
}}
Expand All @@ -767,7 +767,7 @@ export class CatalogService extends cds.ApplicationService { init() {
// After READ handler on Books to add discount info
this.after ('READ', 'Books', results => results.forEach (book => {
if (book.stock > 111) book.title += ` -- 11% discount!`
})
}))

return super.init()
}}
Expand Down Expand Up @@ -901,4 +901,4 @@ Thereby we touched upon some best practices of CAP, such as:
::: tip [Pushdown to Database](#pushed-down-to-db-1)
:::

Learn more about these practices and guiding principles in the [_Core Concepts_](./concepts) guide following next, and the [_Key Features_](./features) guide thereafter. After that, go ahead and explore further on your own in the respective deep dive guides in the [_Develop_ section](../guides/).
Learn more about these practices and guiding principles in the [_Core Concepts_](./concepts) guide following next, and the [_Key Features_](./features) guide thereafter. After that, go ahead and explore further on your own in the respective deep dive guides in the [_Develop_ section](../guides/).