Skip to content

Commit

Permalink
Merge pull request #6385 from entur/fix_bug_book_when_is_null
Browse files Browse the repository at this point in the history
Fix `bookWhen` field is `null` in the Transmodel API
  • Loading branch information
t2gran authored Jan 15, 2025
2 parents 73c9672 + 09fb9d8 commit 7dc8617
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 7dc8617

Please sign in to comment.