diff --git a/backend/shareNote/src/main/java/com/Backend/shareNote/domain/Jwt/JWTFilter.java b/backend/shareNote/src/main/java/com/Backend/shareNote/domain/Jwt/JWTFilter.java index 8aa57691..9d55db5d 100644 --- a/backend/shareNote/src/main/java/com/Backend/shareNote/domain/Jwt/JWTFilter.java +++ b/backend/shareNote/src/main/java/com/Backend/shareNote/domain/Jwt/JWTFilter.java @@ -27,7 +27,7 @@ public class JWTFilter extends OncePerRequestFilter { private final List permitAllUrls = List.of("/api/user/login", "/api/user/signUp", "/", "/api/user/reissue", "/api/user/cookieToJwt","/api/user/uniqueEmail/.*","/api/user/uniqueNickname/.*","/swagger-ui.html" - ,"/api/user/organization/invitation/accept", "/api/image"); + ,"/api/user/organization/invitation/accept", "/api/image", "/api/organization/invitation/approve"); @Override protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { String requestURI = request.getRequestURI(); diff --git a/backend/shareNote/src/main/java/com/Backend/shareNote/domain/Oraganization/service/FirebaseCloudMessageService.java b/backend/shareNote/src/main/java/com/Backend/shareNote/domain/Oraganization/service/FirebaseCloudMessageService.java index ba0ee336..c2de900a 100644 --- a/backend/shareNote/src/main/java/com/Backend/shareNote/domain/Oraganization/service/FirebaseCloudMessageService.java +++ b/backend/shareNote/src/main/java/com/Backend/shareNote/domain/Oraganization/service/FirebaseCloudMessageService.java @@ -19,7 +19,7 @@ @RequiredArgsConstructor public class FirebaseCloudMessageService { private final String API_URL = "https://fcm.googleapis.com/v1/projects/" + - "sharenote-64aaf/messages:send"; + "fcmalarm-258f5/messages:send"; private final ObjectMapper objectMapper; public void sendMessageTo(String targetToken, String title, String body) throws IOException { diff --git a/backend/shareNote/src/main/java/com/Backend/shareNote/domain/Oraganization/service/QuizService.java b/backend/shareNote/src/main/java/com/Backend/shareNote/domain/Oraganization/service/QuizService.java index b1b46ee3..dd91ed67 100644 --- a/backend/shareNote/src/main/java/com/Backend/shareNote/domain/Oraganization/service/QuizService.java +++ b/backend/shareNote/src/main/java/com/Backend/shareNote/domain/Oraganization/service/QuizService.java @@ -82,7 +82,9 @@ public ResponseEntity createQuiz(QuizCreateDTO quizCreateDTO) { //알림 보내기 for(String fcm : fcmList){ log.info("fcm: " + fcm); - firebaseCloudMessageService.sendMessageTo(fcm, "새로운 퀴즈가 등록되었습니다.", quizCreateDTO.getQuizTitle()); + //아 의사소통 부재로 이 필드는 null이라서 body값이 null이라 안드로이드에서 알림을 안날린 듯 + //고쳐도 안되네 그래도 일단 keep + firebaseCloudMessageService.sendMessageTo(fcm, "새로운 퀴즈가 등록되었습니다.", quizCreateDTO.getProblem()); }