Skip to content

Commit

Permalink
fix validation message in case both roomId and roomName are set
Browse files Browse the repository at this point in the history
  • Loading branch information
paulchen committed Jun 23, 2024
1 parent 4f88202 commit cb2616a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class MessageHelper {
return ValidationResult("One of roomId and roomName must be set", message)
}
if (StringUtils.isNotBlank(message.roomId) && StringUtils.isNotBlank(message.roomName)) {
return ValidationResult("Only of roomId and roomName must be set", message)
return ValidationResult("Only one of roomId and roomName must be set", message)
}
val roomId = if (message.roomName != null && StringUtils.isNotBlank(message.roomName)) {
Bot.subscriptionService.getChannelIdByName(message.roomName)
Expand Down

0 comments on commit cb2616a

Please sign in to comment.