Skip to content

Commit

Permalink
fix: The bookWhen field is null in the Transmodel API #6384
Browse files Browse the repository at this point in the history
  • Loading branch information
t2gran committed Jan 14, 2025
1 parent a5e829d commit 09fb9d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public static GraphQLObjectType create() {
.type(EnumTypes.PURCHASE_WHEN)
.dataFetcher(environment -> {
BookingInfo bookingInfo = bookingInfo(environment);
if (bookingInfo.getMinimumBookingNotice() != null) {
if (bookingInfo.getMinimumBookingNotice().isPresent()) {
return null;
}
BookingTime latestBookingTime = bookingInfo.getLatestBookingTime();
Expand Down

0 comments on commit 09fb9d8

Please sign in to comment.