aboutsummaryrefslogtreecommitdiff
path: root/Backend
diff options
context:
space:
mode:
authorbranislav.radivojevic <wafflemynxyt@gmail.com>2022-12-08 13:54:22 +0100
committerbranislav.radivojevic <wafflemynxyt@gmail.com>2022-12-08 13:54:22 +0100
commitd77a0e4d7e14251f38d17c5b6c0dc5ff819628a8 (patch)
tree340200da81cefa329b73a2f86f3e9def7d21d2a3 /Backend
parent3ddec81be8cd828115ff3dfa8180a9440995a6fe (diff)
bugfix zvezdice za ocenjivanje
Diffstat (limited to 'Backend')
-rw-r--r--Backend/Api/Api/Services/PostService.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Backend/Api/Api/Services/PostService.cs b/Backend/Api/Api/Services/PostService.cs
index cb59330..0799f10 100644
--- a/Backend/Api/Api/Services/PostService.cs
+++ b/Backend/Api/Api/Services/PostService.cs
@@ -162,7 +162,11 @@ namespace Api.Services
tosend.ratingscount = ps.ratingscount;
if (p.ownerId == userid)
- return null;
+ {
+ tosend.myrating = -1;
+ return tosend;
+ }
+
if(rating.rating == 0)// ako nema rating staviti 0
{
var r = p.ratings.Find(x => x.userId == userid);