renamed spec

This commit is contained in:
2026-03-28 15:44:06 +01:00
parent 2936fe7d15
commit 108cec1a7a
2 changed files with 3 additions and 3 deletions
@@ -16,6 +16,6 @@ public class GetAllUsersEndpoint(UsersRepository usersRepository, UserService us
public override async Task HandleAsync(CancellationToken ct) public override async Task HandleAsync(CancellationToken ct)
{ {
int userId = userService.GetUserIdFromToken(); 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);
} }
} }
@@ -3,9 +3,9 @@ using BeReadyBackend.Models;
namespace BeReadyBackend.Specifications.Users; namespace BeReadyBackend.Specifications.Users;
public class GetUserNotFriendSpec : Specification<User> public class GetUserNotMeSpec : Specification<User>
{ {
public GetUserNotFriendSpec(int userId) public GetUserNotMeSpec(int userId)
{ {
Query Query
.Where(x => x.Id != userId); .Where(x => x.Id != userId);