Skip to content

Commit

Permalink
fixup! HAI-1875 Add audit logging for new users and tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
corvidian committed Sep 5, 2023
1 parent d7ab84b commit 5bceee2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,9 @@ class HankeFactory(

fun save(hanke: Hanke) = hankeService.createHanke(hanke)

fun saveMinimal(hankeTunnus: String): HankeEntity =
fun saveMinimal(hankeTunnus: String = hanketunnusService.newHanketunnus()): HankeEntity =
hankeRepository.save(HankeEntity(hankeTunnus = hankeTunnus))

fun saveMinimal(): HankeEntity = saveMinimal(hanketunnusService.newHanketunnus())

fun saveSeveralMinimal(n: Int): List<HankeEntity> = (1..n).map { saveMinimal() }

companion object {
Expand Down

0 comments on commit 5bceee2

Please sign in to comment.