Renamed minimalUser to user

This commit is contained in:
Dominic Villemure
2024-07-05 00:15:54 -04:00
parent cb55989c71
commit b80374649b
3 changed files with 11 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
using Hutopy.Application.Users.Commands;
using Hutopy.Application.Users.Queries.GetMinimalUser;
using Hutopy.Application.Users.Queries.GetUser;
namespace Hutopy.Web.Endpoints;
@@ -11,7 +11,7 @@ public class Users : EndpointGroupBase
.MapPost(CreateUser)
.MapPost(Login, "/login")
.MapPost(UploadProfilePicture, "/upload-profile-picture")
.MapGet(GetMinimalUser);
.MapGet(GetUser);
}
private static async Task<Guid> CreateUser(ISender sender, CreateUserCommand command)
@@ -19,7 +19,7 @@ public class Users : EndpointGroupBase
return await sender.Send(command);
}
private static async Task<MinimalUserDto> GetMinimalUser(ISender sender, [AsParameters] GetMinimalUserQuery query)
private static async Task<UserDto> GetUser(ISender sender, [AsParameters] GetUserQuery query)
{
return await sender.Send(query);
}