You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.info("******** uploading check-in for event ${entry.key.get().key} (${entry.value.size}) **********")
358
358
tryOrDefault<Unit>().invoke({
359
359
val event = entry.key.get()
360
-
val scanLogEntries = entry.value.filter { it.ticket !=null }
361
-
val ticketIdToScanLogId = scanLogEntries.associate { it.ticket!!.uuid to it.id }
362
-
val response = remoteCheckInExecutor.remoteBulkCheckIn(event.key, scanLogEntries) { list -> list.map { mapOf("identifier" to it.ticket!!.uuid, "code" to "${it.ticket.uuid}/${it.ticket.hmac}")}}
363
-
364
-
response.forEach {
365
-
if(logger.isTraceEnabled) {
366
-
logger.trace("upload entries response is ${it.key}${gson.toJson(it.value)}")
val ticketIdToScanLogId = scanLogEntries.associate { it.ticket!!.uuid to it.id }
362
+
val response = remoteCheckInExecutor.remoteBulkCheckIn(event.key, scanLogEntries) { list -> list.map { mapOf("identifier" to it.ticket!!.uuid, "code" to "${it.ticket.uuid}/${it.ticket.hmac}")}}
363
+
response.forEach {
364
+
if(logger.isTraceEnabled) {
365
+
logger.trace("upload entries response is ${it.key}${gson.toJson(it.value)}")
366
+
}
367
+
kvStore.updateRemoteResult(it.value.result.status, ticketIdToScanLogId[it.key] ?: error("Unexpected error during check-in upload"))
367
368
}
368
-
kvStore.updateRemoteResult(it.value.result.status, ticketIdToScanLogId[it.key] ?: error("Unexpected error during check-in upload"))
369
369
}
370
370
}, { logger.error("unable to upload pending check-in", it)})
0 commit comments