Skip to content

Commit

Permalink
Bugfix: GetCalendarEntry() shouldn't exclude default Event types.
Browse files Browse the repository at this point in the history
  • Loading branch information
phw198 committed Jan 14, 2025
1 parent 6130323 commit 91130a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OutlookGoogleCalendarSync/Google/GoogleCalendar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public Event GetCalendarEntry(String eventId) {
try {
request = gr.Execute();
EventsResource.ListRequest.EventTypesEnum eventType;
if (Enum.TryParse(request.EventType.Replace("__", ""), true, out eventType)) {
if (Enum.TryParse(request.EventType.Replace("default", "Default__"), true, out eventType)) {
if (!permittedEventTypes.Contains(eventType)) {
log.Warn($"Non-consumer version of EventType '{request.EventType}' found - excluding.");
return null;
Expand Down

0 comments on commit 91130a5

Please sign in to comment.