Skip to content

Commit

Permalink
Fix check-in text "null" for offline checks
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelm committed Nov 30, 2023
1 parent efb20e4 commit dec0b02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ class AsyncCheckProvider(private val config: ConfigStore, private val dataStore:
sentry.captureException(e)
}
res.isRequireAttention = require_attention || (variation?.isCheckin_attention == true)
res.checkinTexts = listOfNotNull(variation?.checkin_text?.trim(), item.checkin_text?.trim()).filterNot { it.isBlank() }
res.checkinTexts = listOfNotNull(variation?.checkin_text?.trim(), item.checkin_text?.trim()).filterNot { it.isBlank() }.filterNot { it.isBlank() || it == "null" }

val queuedCheckIns = dataStore.select(QueuedCheckIn::class.java)
.where(QueuedCheckIn.SECRET.eq(ticketid))
Expand Down

0 comments on commit dec0b02

Please sign in to comment.