fix: seller discovery endpoint now returns name

This commit is contained in:
Damien Ostler 2024-02-11 01:27:23 -05:00
parent d260603b34
commit fe2aa82935
2 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@ namespace comissions.app.api.Models.Discovery;
public class DiscoverySellerModel
{
public int Id { get; set; }
public string Name { get; set; }
public List<string> SocialMediaLinks { get; set; }
public string Biography { get; set; }
public bool PrepaymentRequired { get; set; }

View File

@ -19,6 +19,7 @@ public static class SellerProfileModelExtensions
{
return new DiscoverySellerModel()
{
Name = sellerProfile.User.DisplayName,
Id = sellerProfile.Id,
SocialMediaLinks = sellerProfile.SocialMediaLinks,
Biography = sellerProfile.Biography,