diff --git a/internal/adapter/outlook_http/client.go b/internal/adapter/outlook_http/client.go index 1c8f56b..5aa7fcb 100644 --- a/internal/adapter/outlook_http/client.go +++ b/internal/adapter/outlook_http/client.go @@ -215,7 +215,7 @@ func (o OutlookClient) eventToOutlookEvent(e models.Event) (oe Event) { for _, att := range e.Attendees { outlookEvent.Attendees = append(outlookEvent.Attendees, Attendee{ - EmailAdress: EmailAddress{ + EmailAddress: EmailAddress{ Address: att.Email, Name: att.DisplayName, }, @@ -252,8 +252,8 @@ func (o OutlookClient) outlookEventToEvent(oe Event, adapterSourceID string) (e for _, eventAttendee := range oe.Attendees { attendees = append(attendees, models.Attendee{ - Email: eventAttendee.EmailAdress.Address, - DisplayName: eventAttendee.EmailAdress.Name, + Email: eventAttendee.EmailAddress.Address, + DisplayName: eventAttendee.EmailAddress.Name, }) } diff --git a/internal/adapter/outlook_http/models.go b/internal/adapter/outlook_http/models.go index 4ba9fa6..1564caf 100644 --- a/internal/adapter/outlook_http/models.go +++ b/internal/adapter/outlook_http/models.go @@ -54,7 +54,7 @@ type Time struct { } type Attendee struct { - EmailAdress EmailAddress `json:"emailAddress,omitempty"` + EmailAddress EmailAddress `json:"emailAddress,omitempty"` } type EmailAddress struct {