feat: update protobuf versions and enhance club membership and commission queries
Build and Deploy / build (push) Successful in 1m41s
Build and Deploy / build (push) Successful in 1m41s
This commit is contained in:
+16
-8
@@ -16,18 +16,26 @@ public class GetAllConfigurationsQueryHandler : IRequestHandler<GetAllConfigurat
|
||||
{
|
||||
var grpcRequest = new GetAllConfigurationsRequest
|
||||
{
|
||||
PageIndex = request.PageIndex,
|
||||
PageSize = request.PageSize
|
||||
PaginationState = new CMSMicroservice.Protobuf.Protos.PaginationState
|
||||
{
|
||||
PageNumber = request.PageIndex,
|
||||
PageSize = request.PageSize
|
||||
}
|
||||
};
|
||||
|
||||
if (request.Scope.HasValue)
|
||||
if (request.Scope.HasValue || request.IsActive.HasValue)
|
||||
{
|
||||
grpcRequest.Scope = request.Scope.Value;
|
||||
}
|
||||
grpcRequest.Filter = new GetAllConfigurationsFilter();
|
||||
|
||||
if (request.Scope.HasValue)
|
||||
{
|
||||
grpcRequest.Filter.Scope = request.Scope.Value;
|
||||
}
|
||||
|
||||
if (request.IsActive.HasValue)
|
||||
{
|
||||
grpcRequest.IsActive = request.IsActive.Value;
|
||||
if (request.IsActive.HasValue)
|
||||
{
|
||||
grpcRequest.Filter.IsActive = request.IsActive.Value;
|
||||
}
|
||||
}
|
||||
|
||||
var response = await _context.Configurations.GetAllConfigurationsAsync(grpcRequest, cancellationToken: cancellationToken);
|
||||
|
||||
Reference in New Issue
Block a user