Merge branch 'kub-stage' into production
Build and Deploy to Production / build-and-deploy (push) Successful in 9m24s

This commit is contained in:
masoodafar-web
2026-05-14 01:13:03 +03:30
6 changed files with 16 additions and 4 deletions
@@ -23,6 +23,8 @@ public class DiscountProductProfile : IRegister
src => src.MinPrice != null ? (int?)src.MinPrice.Value : null)
.Map(dest => dest.MaxPrice,
src => src.MaxPrice != null ? (int?)src.MaxPrice.Value : null)
.Map(dest => dest.SortBy,
src => string.IsNullOrEmpty(src.SortBy) ? null : src.SortBy)
.Map(dest => dest.PaginationQuery, src => new PaginationState
{
PageNumber = src.PageNumber > 0 ? src.PageNumber : 1,
@@ -64,6 +66,7 @@ public class DiscountProductProfile : IRegister
ThumbnailPath = p.ThumbnailPath ?? string.Empty,
RemainingCount = p.RemainingCount,
ViewCount = p.ViewCount,
SaleCount = p.SaleCount,
IsActive = p.IsActive,
Created = Timestamp.FromDateTime(DateTime.UtcNow)
});