fix: use SanitizedUserListDTO instead of UserListDTO in GetUsers
This commit is contained in:
@@ -47,7 +47,7 @@ func (h *UserHandler) GetUsers(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
userDTOs := dto.ToSanitizedUserDTOs(users)
|
||||
responseDTO := dto.UserListDTO{
|
||||
responseDTO := dto.SanitizedUserListDTO{
|
||||
Users: userDTOs,
|
||||
Count: len(userDTOs),
|
||||
Limit: limit,
|
||||
|
||||
Reference in New Issue
Block a user