fix: adjust network tree depth limit and update commission mapping
All checks were successful
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 2m5s
All checks were successful
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 2m5s
This commit is contained in:
@@ -9,8 +9,8 @@ public class GetNetworkTreeQueryValidator : AbstractValidator<GetNetworkTreeQuer
|
||||
.WithMessage("شناسه کاربر معتبر نیست");
|
||||
|
||||
RuleFor(x => x.MaxDepth)
|
||||
.InclusiveBetween(1, 10)
|
||||
.WithMessage("عمق درخت باید بین 1 تا 10 باشد");
|
||||
.InclusiveBetween(1, 20)
|
||||
.WithMessage("عمق درخت باید بین 1 تا 20 باشد");
|
||||
}
|
||||
|
||||
public Func<object, string, Task<IEnumerable<string>>> ValidateValue => async (model, propertyName) =>
|
||||
|
||||
@@ -30,6 +30,7 @@ public class CommissionProfile : IRegister
|
||||
.Map(dest => dest.CalculatedAt, src => src.CalculatedAt.HasValue
|
||||
? Timestamp.FromDateTime(src.CalculatedAt.Value.ToUniversalTime())
|
||||
: null)
|
||||
|
||||
.Map(dest => dest.LastExecutionStatus, src => src.LastExecutionStatus ?? string.Empty)
|
||||
.Map(dest => dest.TotalPoolAmount, src => src.TotalPoolAmount ?? 0)
|
||||
.Map(dest => dest.EligibleUsersCount, src => src.EligibleUsersCount ?? 0)
|
||||
|
||||
Reference in New Issue
Block a user