Skip to content

Commit

Permalink
hotfix/notificationToken-nullable-1: deviceId, pushToken nullable 처리해…
Browse files Browse the repository at this point in the history
… 로그인 안됨 문제
  • Loading branch information
KooSuYeon committed Jan 14, 2025
1 parent c294898 commit 45eb5ca
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 81 deletions.
57 changes: 0 additions & 57 deletions src/main/java/com/dife/api/config/ApnsJwtGenerator.java

This file was deleted.

3 changes: 0 additions & 3 deletions src/main/java/com/dife/api/service/NotificationService.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import static java.util.stream.Collectors.toList;

import com.dife.api.config.ApnsJwtGenerator;
import com.dife.api.exception.MemberNotFoundException;
import com.dife.api.exception.NotificationAuthorizationException;
import com.dife.api.exception.NotificationException;
Expand All @@ -22,7 +21,6 @@
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.*;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
Expand All @@ -39,7 +37,6 @@ public class NotificationService {
private final MemberRepository memberRepository;
private final NotificationTokenRepository notificationTokenRepository;
private final NotificationRepository notificationRepository;
@Autowired private final ApnsJwtGenerator apnsJwtGenerator;

public NotificationTokenResponseDto sendNotificationToken(
String memberEmail, NotificationTokenRequestDto requestDto) {
Expand Down
5 changes: 0 additions & 5 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,3 @@ logging:
socket: trace
translation:
api-key: ${DEEPL_TRANSLATE_API_KEY}

apn:
key-id: ${APN_TEAM_ID}
team-id: ${APN_KEY_ID}
private-key: ${APN_PRIVATE_KEY}
5 changes: 0 additions & 5 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ spring:
translation:
api-key: ${DEEPL_TRANSLATE_API_KEY}

apn:
key-id: ${APN_TEAM_ID}
team-id: ${APN_KEY_ID}
private-key: ${APN_PRIVATE_KEY}

logging:
level:
org:
Expand Down
5 changes: 0 additions & 5 deletions src/test/java/com/dife/api/config/TestConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,4 @@ public JavaMailSender javaMailSender() {
public FileService fileService() {
return mock(FileService.class);
}

@Bean
public ApnsJwtGenerator apnsJwtGenerator() {
return mock(ApnsJwtGenerator.class);
}
}
7 changes: 1 addition & 6 deletions src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,4 @@ jwt:
secret: 001b8ec844c5353413ba8b8c0025c94499eb25ae7486652efb2a89535b2d1a4f

translation:
api-key: test

apn:
key-id: test
team-id: test
private-key: test
api-key: test

0 comments on commit 45eb5ca

Please sign in to comment.