diff options
author | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-11-05 15:18:37 +0100 |
---|---|---|
committer | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-11-05 15:18:37 +0100 |
commit | 35ec92b144e690c84c31959b8da98b4a3797cc48 (patch) | |
tree | d1a43316327af8739a276f63aed75be948898e1e /Backend/Api | |
parent | f8b5a5eed843cdd0e94f96be072043f47c5db956 (diff) | |
parent | bf2b7accb869db760ee04c2f33f93f08164b8993 (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 | 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); } |