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 Dec 19, 2024
1 parent 1fb808c commit 42a8979
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 @@ -103,13 +103,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 42a8979

Please sign in to comment.