Jared Norris 6 gadus atpakaļ
vecāks
revīzija
1cb744d325

+ 1
- 1
Back-End/src/main/java/com/zipline/back/controller/PostController.java Parādīt failu

@@ -28,8 +28,8 @@ public class PostController {
28 28
     ) {
29 29
         post.setUser(userRepo.findByGithubId(githubId));
30 30
         post.setTimestamp(LocalDateTime.now());
31
+        post.setSender(githubId);
31 32
         return postRepo.save(post);
32
-
33 33
     }
34 34
 
35 35
     @GetMapping("/{githubId}")