fix: api now returns Id of seller in the response for get seller profile

This commit is contained in:
Damien Ostler 2024-02-14 21:58:51 -05:00
parent d8d51b4560
commit 742f5b02dd
4 changed files with 5 additions and 2 deletions

View File

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

View File

@ -10,11 +10,13 @@ public static class SellerProfileModelExtensions
{
return new SellerProfileModel()
{
Id = sellerProfile.Id,
SocialMediaLinks = sellerProfile.SocialMediaLinks,
Biography = sellerProfile.Biography,
PrepaymentRequired = sellerProfile.PrepaymentRequired
};
}
public static DiscoverySellerModel ToDiscoveryModelWithoutReviews(this UserSellerProfile sellerProfile)
{
return new DiscoverySellerModel()

View File

@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("comissions.app.database.migrator")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+d9f01cc96c3f3488ff1ffabc8c18ff2ed9192d31")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+d8d51b456050a060dd0ecc4ad9e1563fa2516ff2")]
[assembly: System.Reflection.AssemblyProductAttribute("comissions.app.database.migrator")]
[assembly: System.Reflection.AssemblyTitleAttribute("comissions.app.database.migrator")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@ -1 +1 @@
c6d58bbb171a5f23ad416c7cc86ea9dc93efccc8a6b6525298ad1e8fa000718c
a282da1bb9c181a212285cc35598ecd3419f40b57c41b5e385a87aca4aed9fd3