summaryrefslogtreecommitdiff
path: root/internal/api/google_calendar.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-07-12 11:06:32 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-07-12 11:06:32 +0000
commitf31b4722243b8b69564c94e47e07678153c31815 (patch)
tree9b66a2132b7c40c3ca189aa151327aeec33cc18b /internal/api/google_calendar.go
parentb1c76cdf30b7d491f3791588c8aa8c66ee5a0950 (diff)
feat(widget): capture and forward RecurringEventID for calendar events
Diffstat (limited to 'internal/api/google_calendar.go')
-rw-r--r--internal/api/google_calendar.go26
1 files changed, 14 insertions, 12 deletions
diff --git a/internal/api/google_calendar.go b/internal/api/google_calendar.go
index 8bb3143..7381527 100644
--- a/internal/api/google_calendar.go
+++ b/internal/api/google_calendar.go
@@ -130,12 +130,13 @@ func (c *GoogleCalendarClient) GetUpcomingEvents(ctx context.Context, maxResults
for _, item := range events.Items {
start, end := c.parseEventTime(item)
allEvents = append(allEvents, models.CalendarEvent{
- ID: item.Id,
- Summary: item.Summary,
- Description: item.Description,
- Start: start,
- End: end,
- HTMLLink: item.HtmlLink,
+ ID: item.Id,
+ Summary: item.Summary,
+ Description: item.Description,
+ Start: start,
+ End: end,
+ HTMLLink: item.HtmlLink,
+ RecurringEventID: item.RecurringEventId,
})
}
}
@@ -163,12 +164,13 @@ func (c *GoogleCalendarClient) GetEventsByDateRange(ctx context.Context, start,
for _, item := range events.Items {
evtStart, evtEnd := c.parseEventTime(item)
allEvents = append(allEvents, models.CalendarEvent{
- ID: item.Id,
- Summary: item.Summary,
- Description: item.Description,
- Start: evtStart,
- End: evtEnd,
- HTMLLink: item.HtmlLink,
+ ID: item.Id,
+ Summary: item.Summary,
+ Description: item.Description,
+ Start: evtStart,
+ End: evtEnd,
+ HTMLLink: item.HtmlLink,
+ RecurringEventID: item.RecurringEventId,
})
}
}