Refactoring of OpinionVoter

This commit is contained in:
2021-01-18 09:51:48 +01:00
parent c196bfadbc
commit ba673943d8
14 changed files with 101 additions and 149 deletions

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)
}
}