summaryrefslogtreecommitdiff
path: root/internal/handlers/widget_test.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-07-12 07:18:01 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-07-12 07:18:01 +0000
commitaf0d59d78524127f6cc76e43a7e397da01788d97 (patch)
treeb534567450d8b43bf6f687cc4fca645f26b1491e /internal/handlers/widget_test.go
parent84252756c687044d73a0ea5cebf8088c7c9ed3e8 (diff)
fix(calendar): split comma-joined GOOGLE_CALENDAR_ID before use
fetchCalendarEvents falls back to config.GoogleCalendarID whenever no source_configs rows exist yet for the gcal source -- which is the current live state (0 rows). GoogleCalendarID is a single env var that itself holds a comma-separated list of calendar IDs, but the whole joined string was being wrapped in a single-element []string{...} and passed straight to SetCalendarIDs. Google's API takes one calendarId per call, so every fetch failed with '404 Not Found' on the literal comma-joined string -- confirmed live in production logs. This broke all calendar events, in both the web dashboard and the widget, silently. Now splits on commas and trims whitespace before use.
Diffstat (limited to 'internal/handlers/widget_test.go')
0 files changed, 0 insertions, 0 deletions