back
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
namespace AipsCore.Application.Models.User.Query.GetMe;
|
||||
|
||||
public record GetMeQueryDto(string UserName);
|
||||
public record GetMeQueryDto(string UserId, string UserName);
|
||||
@@ -32,6 +32,6 @@ public class GetMeQueryHandler : IQueryHandler<GetMeQuery, GetMeQueryDto>
|
||||
throw new ValidationException(UserErrors.NotFound(new UserId(userId.IdValue)));
|
||||
}
|
||||
|
||||
return new GetMeQueryDto(result.UserName!);
|
||||
return new GetMeQueryDto(result.Id.ToString(), result.UserName!);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user