diff options
author | branislav.radivojevic <wafflemynxyt@gmail.com> | 2022-11-05 14:51:17 +0100 |
---|---|---|
committer | branislav.radivojevic <wafflemynxyt@gmail.com> | 2022-11-05 14:51:17 +0100 |
commit | bf2b7accb869db760ee04c2f33f93f08164b8993 (patch) | |
tree | 59e2a87faaa3b1b97666e0fa07c3f43e6a19ba22 /Backend/Api | |
parent | 146a732982f096bfdb3e3ed56300233736f90c21 (diff) |
reset sifre na app-u
Diffstat (limited to 'Backend/Api')
-rw-r--r-- | Backend/Api/Api/Services/PostService.cs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Backend/Api/Api/Services/PostService.cs b/Backend/Api/Api/Services/PostService.cs index 2f29366..0a12f39 100644 --- a/Backend/Api/Api/Services/PostService.cs +++ b/Backend/Api/Api/Services/PostService.cs @@ -23,7 +23,7 @@ namespace Api.Services { Post p = new Post(); p._id = ""; - p.ownerId = _httpContext.HttpContext.User.FindFirstValue("id"); + p.ownerId = _httpContext.HttpContext.User.FindFirstValue("id").ToString(); p.locationId = post.locationId; p.description = post.description; @@ -63,14 +63,6 @@ namespace Api.Services } await _posts.InsertOneAsync(p); - - - - - - - - return postToPostSend(p); } |