diff --git a/BeReadyBackend/Endpoints/Users/GetAllUsersEndpoint.cs b/BeReadyBackend/Endpoints/Users/GetAllUsersEndpoint.cs index e6f0713..3f44a68 100644 --- a/BeReadyBackend/Endpoints/Users/GetAllUsersEndpoint.cs +++ b/BeReadyBackend/Endpoints/Users/GetAllUsersEndpoint.cs @@ -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(new GetUserNotFriendSpec(userId), ct), ct); + await Send.OkAsync(await usersRepository.ProjectToListAsync(new GetUserNotMeSpec(userId), ct), ct); } } \ No newline at end of file diff --git a/BeReadyBackend/Specifications/Users/GetUserNotFriendSpec.cs b/BeReadyBackend/Specifications/Users/GetUserNotMeSpec.cs similarity index 64% rename from BeReadyBackend/Specifications/Users/GetUserNotFriendSpec.cs rename to BeReadyBackend/Specifications/Users/GetUserNotMeSpec.cs index 402d6b1..b93d390 100644 --- a/BeReadyBackend/Specifications/Users/GetUserNotFriendSpec.cs +++ b/BeReadyBackend/Specifications/Users/GetUserNotMeSpec.cs @@ -3,9 +3,9 @@ using BeReadyBackend.Models; namespace BeReadyBackend.Specifications.Users; -public class GetUserNotFriendSpec : Specification +public class GetUserNotMeSpec : Specification { - public GetUserNotFriendSpec(int userId) + public GetUserNotMeSpec(int userId) { Query .Where(x => x.Id != userId);