Skip to content

Commit

Permalink
Fix URLs mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Bardin08 committed May 10, 2024
1 parent bc6857b commit 6e21ee9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions EduAutomation/Rest/GitHub/Mappers/RepoEventMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@ public static RepoCreated ToDomainModel(this RepositoryEventPayload p)
Id: p.Repository.Id,
Name: p.Repository.Name,
FullName: p.Repository.FullName,
Url: p.Repository.Url,
Url: p.Repository.HtmlUrl,
CloneUrl: p.Repository.CloneUrl,
CreatedAt: p.Repository.CreatedAt ?? DateTimeOffset.MinValue,
UpdatedAt: p.Repository.UpdatedAt ?? DateTimeOffset.MinValue,
PushedAt: p.Repository.PushedAt ?? DateTimeOffset.MinValue,
Owner: new EduAutomation.Domain.GitHub.User(
Id: p.Repository.Owner.Id,
Login: p.Repository.Owner.Login,
Url: p.Repository.Owner.Url,
Url: p.Repository.Owner.HtmlUrl,
AvatarUrl: p.Repository.Owner.AvatarUrl
)
),
Org: new Org(
Id: p.Organization.Id,
Name: p.Organization.Login, // Using Login as substitute for Name
Url: p.Organization.Url
Name: p.Organization.Login,
Url: p.Organization.HtmlUrl
),
Sender: new EduAutomation.Domain.GitHub.User(
Id: p.Sender.Id,
Login: p.Sender.Login,
Url: p.Sender.Url,
Url: p.Sender.HtmlUrl,
AvatarUrl: p.Sender.AvatarUrl
)
);
Expand Down

0 comments on commit 6e21ee9

Please sign in to comment.