Refactoring of OpinionVoter

This commit is contained in:
flecomte committed 2021-01-18 09:51:48 +01:00
1 parent c196bfadbc
commit ba673943d8
14 files changed
+101 -149

No files matched your search

+1 -1
View File
@@ -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)
}
}