File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
tuk-api/src/main/kotlin/nexters/tuk/application/gathering Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments