Check in only when expected time within 10 minutes
Some checks failed
build-and-deploy / build-deploy (push) Failing after 29s

This commit is contained in:
androidlover5842
2026-01-29 09:46:07 +05:30
parent f342b229f4
commit 5705253481

View File

@@ -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