Skip to content

Commit

Permalink
feat: 불필요한 줄바꿈 제거(#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Minjae-An committed May 11, 2024
1 parent 47566a3 commit b711b65
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions be/src/main/java/yeonba/be/mypage/service/MyPageService.java
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,12 @@ public NotificationPermissionsResponse getNotificationPermissions(long userId) {
notificationPermissionQuery.findAllByUser(user);

// 알림 타입별 동의 내역 Map 형성
Map<NotificationType, Boolean> typePermissionStatusMap =
notificationPermissions.stream()
.collect(Collectors.toMap(
NotificationPermission::getType,
NotificationPermission::getPermissionStatus,
(existing, replacement) -> existing
));
Map<NotificationType, Boolean> typePermissionStatusMap = notificationPermissions.stream()
.collect(Collectors.toMap(
NotificationPermission::getType,
NotificationPermission::getPermissionStatus,
(existing, replacement) -> existing
));

// 회원 가입시 알림 전부 동의 처리, 기본 동의한 것으로 간주하여 응답 제공
return new NotificationPermissionsResponse(
Expand Down

0 comments on commit b711b65

Please sign in to comment.