Skip to content

Commit 2d208c7

Browse files
committed
fix: 마지막으로 보낸 알림이 없을 때, 모임 생성일 반
1 parent 992acf7 commit 2d208c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tuk-api/src/main/kotlin/nexters/tuk/application/gathering/GatheringMemberService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import nexters.tuk.contract.ErrorType
66
import nexters.tuk.domain.gathering.*
77
import org.springframework.stereotype.Service
88
import org.springframework.transaction.annotation.Transactional
9-
import java.time.LocalDateTime
109

1110
@Service
1211
class GatheringMemberService(
@@ -39,7 +38,8 @@ class GatheringMemberService(
3938
GatheringMemberResponse.MemberGatherings(
4039
id = memberGathering.gathering.id,
4140
name = memberGathering.gathering.name,
42-
lastPushedAt = memberGathering.gathering.lastPushedAt ?: LocalDateTime.now(),
41+
lastPushedAt = memberGathering.gathering.lastPushedAt
42+
?: memberGathering.gathering.createdAt,
4343
)
4444
}.sortedBy { it.name }
4545
}

0 commit comments

Comments
 (0)