From 5705253481074454a1a5ce559f95d31bae79a0a1 Mon Sep 17 00:00:00 2001 From: androidlover5842 Date: Thu, 29 Jan 2026 09:46:07 +0530 Subject: [PATCH] Check in only when expected time within 10 minutes --- .../com/android/trisolarisserver/controller/BookingFlow.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/android/trisolarisserver/controller/BookingFlow.kt b/src/main/kotlin/com/android/trisolarisserver/controller/BookingFlow.kt index e507afa..30a51c9 100644 --- a/src/main/kotlin/com/android/trisolarisserver/controller/BookingFlow.kt +++ b/src/main/kotlin/com/android/trisolarisserver/controller/BookingFlow.kt @@ -76,7 +76,7 @@ class BookingFlow( } val now = nowForProperty(property.timezone) - val shouldCheckIn = !expectedCheckInAt.isBefore(now) + val shouldCheckIn = !expectedCheckInAt.isAfter(now.plusMinutes(10)) val phone = request.guestPhoneE164?.trim()?.takeIf { it.isNotBlank() } val guest = resolveGuestForBooking(propertyId, property, actor, now, phone) val hasGuestCounts = request.maleCount != null || request.femaleCount != null || request.childCount != null