Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 56a9796

Browse files
committed
.
1 parent ece1962 commit 56a9796

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reviews/srv/reviews-service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = cds.service.impl (function(){
33

44
// Get the CSN definition for Reviews from the db schema for sub-sequent queries
55
// ( Note: we explicitly specify the namespace to support embedded reuse )
6-
const { Reviews, Likes } = this.entities ('sap.capire.reviews')
6+
const { Reviews, Likes } = this.entities
77

88
this.before (['CREATE','UPDATE'], 'Reviews', req => {
99
if (!req.data.rating) req.data.rating = Math.round(Math.random()*4)+1

0 commit comments

Comments
 (0)