Skip to content

Commit

Permalink
Trim customText to null in svarbrev settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
flexable777 committed Jul 15, 2024
1 parent fc2aac8 commit 70bd1d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import java.util.*
data class UpdateSvarbrevSettingsInput(
val behandlingstidUnitType: SvarbrevSettings.BehandlingstidUnitType,
val behandlingstidUnits: Int,
val customText: String?,
val customText: String,
val shouldSend: Boolean,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SvarbrevSettingsService(
svarbrevSettings.apply {
behandlingstidUnits = updateSvarbrevSettingsInput.behandlingstidUnits
behandlingstidUnitType = updateSvarbrevSettingsInput.behandlingstidUnitType
customText = updateSvarbrevSettingsInput.customText
customText = updateSvarbrevSettingsInput.customText.takeIf { it.isNotBlank() }
shouldSend = updateSvarbrevSettingsInput.shouldSend
createdBy = tokenUtil.getIdent()
modified = LocalDateTime.now()
Expand Down

0 comments on commit 70bd1d0

Please sign in to comment.