From 4dc730ee0fbf18e1354e44581ec37f0f61d3c384 Mon Sep 17 00:00:00 2001 From: Jonah Greenthal Date: Sat, 28 Oct 2023 14:44:33 -0500 Subject: [PATCH] handle orderers placed by null school --- .../kotlin/com/reinsteinquizbowl/order/api/ApiPacketExposure.kt | 2 +- .../kotlin/com/reinsteinquizbowl/order/entity/PacketExposure.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/reinsteinquizbowl/order/api/ApiPacketExposure.kt b/src/main/kotlin/com/reinsteinquizbowl/order/api/ApiPacketExposure.kt index c03be0e..ff9987f 100644 --- a/src/main/kotlin/com/reinsteinquizbowl/order/api/ApiPacketExposure.kt +++ b/src/main/kotlin/com/reinsteinquizbowl/order/api/ApiPacketExposure.kt @@ -7,7 +7,7 @@ data class ApiPacketExposure( val sourceId: Long, val bookingId: Long, val bookingCreationId: String, - val ordererSchoolId: Long, + val ordererSchoolId: Long?, val tentativePacketExposure: Boolean, val confirmedPacketExposure: Boolean, ) diff --git a/src/main/kotlin/com/reinsteinquizbowl/order/entity/PacketExposure.kt b/src/main/kotlin/com/reinsteinquizbowl/order/entity/PacketExposure.kt index dfede82..c413e27 100644 --- a/src/main/kotlin/com/reinsteinquizbowl/order/entity/PacketExposure.kt +++ b/src/main/kotlin/com/reinsteinquizbowl/order/entity/PacketExposure.kt @@ -16,7 +16,7 @@ data class PacketExposure( val sourceId: Long, val bookingId: Long, val bookingCreationId: String, - val ordererSchoolId: Long, + val ordererSchoolId: Long? = null, val tentativePacketExposure: Boolean, val confirmedPacketExposure: Boolean, )