diff options
author | TAMARA JERINIC <tamara.jerinic@gmail.com> | 2022-12-08 14:24:36 +0100 |
---|---|---|
committer | TAMARA JERINIC <tamara.jerinic@gmail.com> | 2022-12-08 14:24:36 +0100 |
commit | 12677dfc9558c7eecad158b5620b4640a67e06b3 (patch) | |
tree | 65f8247d1c5baf25e1b817ed4335790a2e968c68 /Backend/Api | |
parent | 6200ad1b4e30f8e6ed3487b79169862fe4ed0572 (diff) | |
parent | ab1706994578051a322ef2f816af5e6cdca4dca1 (diff) |
Merge branch 'develop' of http://gitlab.pmf.kg.ac.rs/BrzoDoLokacije2022/odyssey/brzodolokacije into develop
Diffstat (limited to 'Backend/Api')
-rw-r--r-- | Backend/Api/Api/Services/PostService.cs | 6 |
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); |