From 56a9796329738dc034435ce55c11fc783880dbc5 Mon Sep 17 00:00:00 2001 From: Daniel Hutzel Date: Thu, 24 Apr 2025 05:33:59 +0200 Subject: [PATCH] . --- reviews/srv/reviews-service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reviews/srv/reviews-service.js b/reviews/srv/reviews-service.js index b7f5d0a0..f886bc76 100644 --- a/reviews/srv/reviews-service.js +++ b/reviews/srv/reviews-service.js @@ -3,7 +3,7 @@ module.exports = cds.service.impl (function(){ // Get the CSN definition for Reviews from the db schema for sub-sequent queries // ( Note: we explicitly specify the namespace to support embedded reuse ) - const { Reviews, Likes } = this.entities ('sap.capire.reviews') + const { Reviews, Likes } = this.entities this.before (['CREATE','UPDATE'], 'Reviews', req => { if (!req.data.rating) req.data.rating = Math.round(Math.random()*4)+1