Skip to content

Commit b34abb7

Browse files
authored
Merge pull request #234 from JECT-Study/fix/notification-body-remove-decoration
fix: 투표 종료 알림 body 정리 및 투표 기간 분 단위 옵션 추가
2 parents 219bdad + 5dd7303 commit b34abb7

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/main/java/com/ject/vs/notification/domain/Notification.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static Notification ofVoteEnded(
3939
n.type = NotificationType.VOTE_ENDED;
4040
n.voteId = voteId;
4141
n.title = "투표 결과가 공개됐어요";
42-
n.body = "[" + voteTitle + "] 결과 보러가기";
42+
n.body = voteTitle;
4343
n.thumbnailUrl = thumbnailUrl;
4444
n.isRead = false;
4545
n.createdAt = Instant.now(clock);

src/main/java/com/ject/vs/vote/domain/VoteDuration.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
@Getter
1111
@RequiredArgsConstructor
1212
public enum VoteDuration {
13+
MINUTES_7(Duration.ofMinutes(7)),
14+
MINUTES_10(Duration.ofMinutes(10)),
15+
MINUTES_15(Duration.ofMinutes(15)),
1316
HOURS_12(Duration.ofHours(12)),
1417
HOURS_24(Duration.ofHours(24)),
1518
HOURS_72(Duration.ofHours(72));

src/unitTest/java/com/ject/vs/notification/adapter/web/NotificationControllerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class GetList {
8080
void returns_notification_list() throws Exception {
8181
NotificationView view = new NotificationView(
8282
1L, NotificationType.VOTE_ENDED, 100L,
83-
"투표 결과가 공개됐어요", "[테스트 투표] 결과 보러가기",
83+
"투표 결과가 공개됐어요", "테스트 투표",
8484
"https://example.com/thumb.jpg", false, Instant.now());
8585
NotificationPageResult result = new NotificationPageResult(List.of(view), null, false);
8686

0 commit comments

Comments
 (0)