fix: update default sorting from descending to ascending Created
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 2m43s

This commit is contained in:
masoodafar-web
2025-12-12 07:49:54 +03:30
parent 99b217d5b5
commit 1f6c5a1f45
7 changed files with 7 additions and 7 deletions
@@ -11,7 +11,7 @@ public record GetNetworkMembershipHistoryQuery : IRequest<GetNetworkMembershipHi
public long? UserId { get; init; }
/// <summary>
/// مرتب‌سازی (پیش‌فرض: -Created)
/// مرتب‌سازی (پیش‌فرض: Created)
/// </summary>
public string? SortBy { get; init; }
@@ -20,7 +20,7 @@ public class GetNetworkMembershipHistoryQueryHandler : IRequestHandler<GetNetwor
query = query.Where(x => x.UserId == request.UserId.Value);
}
query = query.ApplyOrder(sortBy: request.SortBy ?? "-Created");
query = query.ApplyOrder(sortBy: request.SortBy ?? "Created");
var meta = await query.GetMetaData(request.PaginationState, cancellationToken);