diff --git a/libpretixsync/src/main/java/eu/pretix/libpretixsync/check/AsyncCheckProvider.kt b/libpretixsync/src/main/java/eu/pretix/libpretixsync/check/AsyncCheckProvider.kt index ff1f993f..d3ec936e 100644 --- a/libpretixsync/src/main/java/eu/pretix/libpretixsync/check/AsyncCheckProvider.kt +++ b/libpretixsync/src/main/java/eu/pretix/libpretixsync/check/AsyncCheckProvider.kt @@ -40,7 +40,7 @@ class AsyncCheckProvider(private val config: ConfigStore, private val dataStore: this.sentry = sentry } - private fun storeFailedCheckin(eventSlug: String, listId: Long, error_reason: String, raw_barcode: String, type: TicketCheckProvider.CheckInType, position: Long? = null, item: Long? = null, variation: Long? = null, subevent: Long? = null, nonce: String?) { + private fun storeFailedCheckin(eventSlug: String, listId: Long, error_reason: String, raw_barcode: String, type: TicketCheckProvider.CheckInType, position: Long? = null, item: Long? = null, variation: Long? = null, subevent: Long? = null, nonce: String?, candidateCheckinLists: Collection? = null) { /* : 0) jdoc.put("item", item) if (variation != null && variation > 0) jdoc.put("variation", variation) if (subevent != null && subevent > 0) jdoc.put("subevent", subevent) + if (candidateCheckinLists != null) jdoc.put("candidate_checkin_lists", candidateCheckinLists) val qo = QueuedCall() val api = PretixApi.fromConfig(config) // todo: uses wrong http client @@ -278,7 +279,7 @@ class AsyncCheckProvider(private val config: ConfigStore, private val dataStore: } if (decoded == null || event == null) { val firstentry = eventsAndCheckinLists.entries.first() - storeFailedCheckin(firstentry.key, firstentry.value, "invalid", ticketid, type, nonce = nonce) + storeFailedCheckin(firstentry.key, firstentry.value, "invalid", ticketid, type, nonce = nonce, candidateCheckinLists=eventsAndCheckinLists.values) return TicketCheckProvider.CheckResult(TicketCheckProvider.CheckResult.Type.INVALID, offline = true) } val listId = eventsAndCheckinLists[event.slug] ?: return TicketCheckProvider.CheckResult(TicketCheckProvider.CheckResult.Type.ERROR, "Check-in list not set for event", offline = true)