Skip to content

Commit a7cf5cf

Browse files
committed
feat: update ProductMappingProfile to map PriceValueInCents for product pricing
1 parent b3dc865 commit a7cf5cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Ecommerce.Application/Common/Mapping/ProductMappingProfile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public ProductMappingProfile()
2828
.ForMember(dest => dest.ProductId, opt => opt.MapFrom(src => src.Id.Value))
2929
.ForMember(dest => dest.ProductName, opt => opt.MapFrom(src => src.Name.Value))
3030
.ForMember(dest => dest.ProductDescription, opt => opt.MapFrom(src => src.Description.Value))
31-
.ForMember(dest => dest.PriceValue, opt => opt.MapFrom(src => src.Price.Value))
31+
.ForMember(dest => dest.PriceValueInCents, opt => opt.MapFrom(src => src.Price.ValueInCents))
3232
.ForMember(dest => dest.StockQuantity, opt => opt.MapFrom(src => src.Stock.Quantity))
3333
.ForMember(dest => dest.Tags, opt => opt.MapFrom(src => src.Tags))
3434
.ForMember(dest => dest.Images, opt => opt.MapFrom(src => src.Images));

0 commit comments

Comments
 (0)