feat: Implement feature to get all projects from an employee (SCRUM-31) #37
@ -14,6 +14,7 @@ import org.springframework.web.client.HttpClientErrorException;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class EmployeeService {
|
||||
@ -59,7 +60,7 @@ public class EmployeeService {
|
||||
}
|
||||
}
|
||||
|
||||
public ArrayList<GetProjectDto> getProjects(Long employeeId) {
|
||||
public List<GetProjectDto> getProjects(Long employeeId) {
|
||||
ArrayList<ProjectEntity> projects = this.projectRepository.findAllByEmployeeId(employeeId);
|
||||
ArrayList<GetProjectDto> projectDtos = new ArrayList<>();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user