renamed spec
This commit is contained in:
@@ -16,6 +16,6 @@ public class GetAllUsersEndpoint(UsersRepository usersRepository, UserService us
|
||||
public override async Task HandleAsync(CancellationToken ct)
|
||||
{
|
||||
int userId = userService.GetUserIdFromToken();
|
||||
await Send.OkAsync(await usersRepository.ProjectToListAsync<GetUserDto>(new GetUserNotFriendSpec(userId), ct), ct);
|
||||
await Send.OkAsync(await usersRepository.ProjectToListAsync<GetUserDto>(new GetUserNotMeSpec(userId), ct), ct);
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -3,9 +3,9 @@ using BeReadyBackend.Models;
|
||||
|
||||
namespace BeReadyBackend.Specifications.Users;
|
||||
|
||||
public class GetUserNotFriendSpec : Specification<User>
|
||||
public class GetUserNotMeSpec : Specification<User>
|
||||
{
|
||||
public GetUserNotFriendSpec(int userId)
|
||||
public GetUserNotMeSpec(int userId)
|
||||
{
|
||||
Query
|
||||
.Where(x => x.Id != userId);
|
||||
Reference in New Issue
Block a user