Skip to content

Commit

Permalink
zep: rename absences to events
Browse files Browse the repository at this point in the history
  • Loading branch information
timonegk committed Jan 13, 2025
1 parent e9814be commit 5ae0e78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/adapter/zep/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ func (zep *CalendarAPI) Initialize(ctx context.Context, openBrowser bool, config
}

func (zep *CalendarAPI) EventsInTimeframe(ctx context.Context, start time.Time, end time.Time) ([]models.Event, error) {
absences, err := zep.ListEvents(start, end)
events, err := zep.ListEvents(start, end)
if err != nil {
return nil, fmt.Errorf("could not get absences %w", err)
return nil, fmt.Errorf("could not get zep events %w", err)
}

var syncEvents []models.Event
for _, v := range absences {
for _, v := range events {
syncEvents = append(syncEvents,
models.Event{
ICalUID: v.ID,
Expand Down

0 comments on commit 5ae0e78

Please sign in to comment.