Refactoring of OpinionVoter
This commit is contained in:
1 parent
c196bfadbc
commit
ba673943d8
14 files changed
+101
-149
No files matched your search
@@ -77,6 +77,6 @@ class OpinionSteps : En, KoinTest {
|
||||
} ?: error("You must provide the 'article' parameter"),
|
||||
createdBy = get<CitizenRepository>().findByUsername(username) ?: error("Citizen not exist")
|
||||
)
|
||||
get<OpinionRepository>().updateOpinions(opinion.choice, opinion.createdBy, opinion.target)
|
||||
get<OpinionRepository>().updateOpinions(opinion)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user