Skip to content

Commit

Permalink
Merge pull request #401 from twenty-three-23/feature/TT-486
Browse files Browse the repository at this point in the history
TT-486
  • Loading branch information
ch8930 authored Nov 13, 2024
2 parents ef9c11f + 2e9fb61 commit a511d66
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
Expand All @@ -19,7 +20,7 @@ public class FCMController {
private final NotificationService notificationService;

@PutMapping("api/v2/user/notification/token")
public ResponseEntity<Void> putFCMToken(RequestFCMTokenDTO request, @AuthenticationPrincipal JWTAuthentication jwtAuthentication) {
public ResponseEntity<Void> putFCMToken(@RequestBody RequestFCMTokenDTO request, @AuthenticationPrincipal JWTAuthentication jwtAuthentication) {

Long userId = jwtAuthentication.getUserId();
notificationService.saveOrUpdateToken(request, userId);
Expand Down

0 comments on commit a511d66

Please sign in to comment.