Skip to content

Commit d684a8d

Browse files
committed
actually update the comment instead of validation only
1 parent 49a70da commit d684a8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kotlin-jira-client/kotlin-jira-client-sdk/src/main/kotlin/com/linkedplanet/kotlinjiraclient/sdk/SdkJiraCommentOperator.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ object SdkJiraCommentOperator : JiraCommentOperator {
6363
): Either<JiraClientError, Unit> = eitherAndCatch {
6464
val issue = issueService.getIssue(user(), issueKey).toEither().bind().issue
6565
val commentParameters = newCommentParameters(issue, content)
66-
commentService.validateCommentUpdate(user(), commentId.toLong(), commentParameters).toEither().bind()
66+
val valid = commentService.validateCommentUpdate(user(), commentId.toLong(), commentParameters).toEither().bind()
67+
commentService.update(user(), valid, dispatchEvent)
6768
}
6869

6970
override suspend fun deleteComment(issueKey: String, id: String): Either<JiraClientError, Unit> =

0 commit comments

Comments
 (0)