Skip to content

Commit 99cd0c2

Browse files
committed
fix: 초대장 발송 후 lastPushedAt 업데이트
1 parent be5a1bc commit 99cd0c2

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class GatheringProposalService(
1515
private val gatheringMemberService: GatheringMemberService,
1616
private val proposalMemberService: ProposalMemberService,
1717
private val pushService: PushService,
18+
private val gatheringService: GatheringService
1819
) {
1920
@Transactional
2021
fun addProposal(command: GatheringProposalCommand.AddProposal) {
@@ -42,5 +43,6 @@ class GatheringProposalService(
4243
proposerMemberId = command.memberId,
4344
)
4445
)
46+
gatheringService.updatePushStatus(command.gatheringId)
4547
}
4648
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,9 @@ class GatheringService(
6868

6969
gathering.delete()
7070
}
71+
72+
@Transactional
73+
fun updatePushStatus(gatheringId: Long) {
74+
gatheringRepository.findByIdOrThrow(gatheringId).updatePushStatus()
75+
}
7176
}

0 commit comments

Comments
 (0)