Skip to content

Commit

Permalink
Merge pull request #189 from frittentheke/fixEMailTypos_188
Browse files Browse the repository at this point in the history
fix: Fix typos (EmailAdress vs EmailAddress) in Outlook model and adapter
  • Loading branch information
MichaelEischer authored Oct 10, 2024
2 parents 0079438 + eb82efd commit ccdebc5
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 ccdebc5

Please sign in to comment.