This commit is contained in:
Veljko Tosic
2026-02-16 18:18:58 +01:00
parent 5d148db4da
commit f2e38f0b09
9 changed files with 84 additions and 18 deletions

View File

@@ -1,3 +1,3 @@
namespace AipsCore.Application.Models.User.Query.GetMe;
public record GetMeQueryDto(string UserName);
public record GetMeQueryDto(string UserId, string UserName);

View File

@@ -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!);
}
}