diff --git a/skill-tree/src/main/java/com/RDS/skilltree/dtos/SkillRequestsDto.java b/skill-tree/src/main/java/com/RDS/skilltree/dtos/SkillRequestsDto.java index f7da08d0..f2aab7a2 100644 --- a/skill-tree/src/main/java/com/RDS/skilltree/dtos/SkillRequestsDto.java +++ b/skill-tree/src/main/java/com/RDS/skilltree/dtos/SkillRequestsDto.java @@ -2,20 +2,21 @@ import com.RDS.skilltree.viewmodels.SkillRequestViewModel; import com.RDS.skilltree.viewmodels.UserViewModel; -import java.util.List; import lombok.Data; import lombok.NoArgsConstructor; +import java.util.List; + @Data @NoArgsConstructor public class SkillRequestsDto { - private List data; + private List requests; private List users; public static SkillRequestsDto toDto( List skillRequests, List users) { SkillRequestsDto skillRequestsDto = new SkillRequestsDto(); - skillRequestsDto.setData(skillRequests); + skillRequestsDto.setRequests(skillRequests); skillRequestsDto.setUsers(users); return skillRequestsDto;