Skip to content

Commit

Permalink
fix: Fix typos (EmailAdress vs EmailAddress) in Outlook model and ada…
Browse files Browse the repository at this point in the history
…pter

There were typos in the use of the use of the `EmailAddress` variable

Fixes: #188
  • Loading branch information
frittentheke committed Sep 11, 2024
1 parent e449ad6 commit eb82efd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions internal/adapter/outlook_http/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down Expand Up @@ -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,
})
}

Expand Down
2 changes: 1 addition & 1 deletion internal/adapter/outlook_http/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ type Time struct {
}

type Attendee struct {
EmailAdress EmailAddress `json:"emailAddress,omitempty"`
EmailAddress EmailAddress `json:"emailAddress,omitempty"`
}

type EmailAddress struct {
Expand Down

0 comments on commit eb82efd

Please sign in to comment.