Skip to content

Commit

Permalink
Merge pull request #269 from tukcomCD2024/BanckendRef
Browse files Browse the repository at this point in the history
퀴즈 환경 수정
  • Loading branch information
Doncham authored Sep 11, 2024
2 parents df01635 + 40bba3a commit 207b6e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class JWTFilter extends OncePerRequestFilter {

private final List<String> 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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ public ResponseEntity<Object> 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());
}


Expand Down

0 comments on commit 207b6e5

Please sign in to comment.