Skip to content

Commit fbd3bb2

Browse files
authored
merge: (#861) VoteWebAdapter 수정
2 parents 3e49220 + ad76c17 commit fbd3bb2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dms-presentation/src/main/kotlin/team/aliens/dms/domain/vote/VoteWebAdapter.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import team.aliens.dms.domain.vote.usecase.CreateVotingTopicUseCase
3333
import team.aliens.dms.domain.vote.usecase.DeleteExcludedStudentUseCase
3434
import team.aliens.dms.domain.vote.usecase.DeleteVoteUseCase
3535
import team.aliens.dms.domain.vote.usecase.DeleteVotingTopicUseCase
36+
import team.aliens.dms.domain.vote.usecase.DeleteVotingOptionUseCase
3637
import team.aliens.dms.domain.vote.usecase.QueryAllExcludedStudentUseCase
3738
import team.aliens.dms.domain.vote.usecase.QueryAllVotingTopicUseCase
3839
import team.aliens.dms.domain.vote.usecase.QueryVotesUseCase
@@ -54,7 +55,7 @@ class VoteWebAdapter(
5455
private val queryVotesUseCase: QueryVotesUseCase,
5556
private val queryVotingOptionsUseCase: QueryVotingOptionsUseCase,
5657
private val deleteVoteUseCase: DeleteVoteUseCase,
57-
private val removeVotingOptionsUseCase: QueryVotingOptionsUseCase,
58+
private val deleteVotingOptionUseCase: DeleteVotingOptionUseCase,
5859
private val deleteExcludedStudentUseCase: DeleteExcludedStudentUseCase
5960
) {
6061

@@ -130,7 +131,7 @@ class VoteWebAdapter(
130131
@ResponseStatus(HttpStatus.NO_CONTENT)
131132
@DeleteMapping("/option/{voting-option-id}")
132133
fun removeVotingOption(@PathVariable("voting-option-id") votingOptionId: UUID) {
133-
removeVotingOptionsUseCase.execute(votingOptionId)
134+
deleteVotingOptionUseCase.execute(votingOptionId)
134135
}
135136

136137
@ResponseStatus(HttpStatus.CREATED)

0 commit comments

Comments
 (0)