clean warnings

This commit is contained in:
2021-03-03 03:14:04 +01:00
parent d9deb4836e
commit 9fc21f5459
6 changed files with 10 additions and 11 deletions

View File

@@ -78,10 +78,10 @@ fun createCommentOnTarget(
content: String? = null
) {
val commentRepository: CommentRepository by lazy { GlobalContext.get().koin.get() }
val createdBy = createCitizen(createdBy)
val creator = createCitizen(createdBy)
val comment = CommentForUpdate(
id = id ?: UUID.randomUUID(),
createdBy = createdBy,
createdBy = creator,
target = target,
content = content ?: LoremIpsum().getParagraphs(1, 3)
)