Skip to content

Commit 4d8bee0

Browse files
authored
Merge pull request #194 from Smart-Air-App/feature/room
commit
2 parents 024c332 + 17daa46 commit 4d8bee0

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/main/java/com/example/smartair/config/SecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
7979
.requestMatchers(HttpMethod.GET, "/sensorMappingWithRoom").permitAll()
8080
.requestMatchers(HttpMethod.POST, "/api/reports/anomaly").permitAll()
8181
.requestMatchers(HttpMethod.POST, "/predictedAirQuality").permitAll()
82-
.anyRequest().authenticated() //개발 중
82+
.anyRequest().permitAll()
8383
);
8484

8585
// JWT 필터 & 커스텀 필터 설정

src/main/java/com/example/smartair/controller/userController/ReissueController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class ReissueController implements ReissueControllerDocs {
2424
private final JWTUtil jwtUtil;
2525
private final RefreshRepository refreshRepository;
2626

27-
private final long ACCESS_TOKEN_EXP = 1000L * 60 * 30; // 30분
27+
private final long ACCESS_TOKEN_EXP = 10000L * 60 * 30; // 30분
2828
private final long REFRESH_TOKEN_EXP = 1000L * 60 * 60 * 24 * 7; // 7일
2929

3030
public ReissueController(JWTUtil jwtUtil, RefreshRepository refreshRepository) {

src/main/java/com/example/smartair/service/airQualityService/report/AnomalyReportService.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,10 @@ public String setAnomalyReport(AnomalyReportDto dto) throws Exception {
114114
public String firebaseAlarm(String targetToken, String description, User user) {
115115
Message message = Message.builder()
116116
.setToken(targetToken)
117-
.putData("title", "이상치 발생 알림")
118-
.putData("body", description)
117+
.setNotification(com.google.firebase.messaging.Notification.builder()
118+
.setTitle("이상치 발생 알림")
119+
.setBody(description)
120+
.build())
119121
.build();
120122
try {
121123
Notification notification = Notification.builder()

0 commit comments

Comments
 (0)