Skip to content

Commit e5a25a1

Browse files
authored
Merge pull request #279 from effectivemade/backendApp/feature/fix_declined_booking
Backend: fix googleCalendarConverter for fast booking
2 parents c2bd51c + a9cde9e commit e5a25a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

effectiveOfficeBackend/src/main/kotlin/office/effective/features/booking/converters/GoogleCalendarConverter.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ class GoogleCalendarConverter(
164164
beginBooking = toLocalInstant(event.start),
165165
endBooking = toLocalInstant(event.end),
166166
recurrence = recurrence?.let { RecurrenceConverter.recurrenceToModel(it) },
167-
isDeclinedByOwner = participantModels.none { model -> model.email == organizerEmail }
167+
isDeclinedByOwner = organizerEmail?.let { email ->
168+
participantModels.none { model -> model.email == email }
169+
} ?: false
168170
)
169171
logger.trace("[toMeetingWorkspaceBooking] {}", booking.toString())
170172
return booking

0 commit comments

Comments
 (0)