fix: update default sorting from descending to ascending Created
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 2m43s
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 2m43s
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ public record GetNetworkMembershipHistoryQuery : IRequest<GetNetworkMembershipHi
|
||||
public long? UserId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// مرتبسازی (پیشفرض: -Created)
|
||||
/// مرتبسازی (پیشفرض: Created)
|
||||
/// </summary>
|
||||
public string? SortBy { get; init; }
|
||||
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user