Skip to content

Commit

Permalink
Merge pull request #279 from effectivemade/backendApp/feature/fix_dec…
Browse files Browse the repository at this point in the history
…lined_booking

Backend: fix googleCalendarConverter for fast booking
  • Loading branch information
csupernova authored Jul 1, 2024
2 parents c2bd51c + a9cde9e commit e5a25a1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ class GoogleCalendarConverter(
beginBooking = toLocalInstant(event.start),
endBooking = toLocalInstant(event.end),
recurrence = recurrence?.let { RecurrenceConverter.recurrenceToModel(it) },
isDeclinedByOwner = participantModels.none { model -> model.email == organizerEmail }
isDeclinedByOwner = organizerEmail?.let { email ->
participantModels.none { model -> model.email == email }
} ?: false
)
logger.trace("[toMeetingWorkspaceBooking] {}", booking.toString())
return booking
Expand Down

0 comments on commit e5a25a1

Please sign in to comment.