feat: switched from String to ProjectDecisionValues
This commit is contained in:
@ -61,7 +61,9 @@ public class AdminApiService {
|
||||
|
||||
// TODO: solve todo + test
|
||||
public void addNewProject(Project project) {
|
||||
projectService.addNewProject(project); // TODO: how can the front know the ID ?
|
||||
projectService.addNewProject(
|
||||
project); // TODO: how can the front know the ID ? => it does not, thus needing to
|
||||
// have null in the project id field
|
||||
}
|
||||
|
||||
// TODO
|
||||
|
@ -102,7 +102,7 @@ public class ProjectService {
|
||||
}
|
||||
|
||||
public Iterable<Project> getPendingProjects() {
|
||||
return this.projectRepository.findByProjectStatus((long) PENDING.ordinal());
|
||||
return this.projectRepository.findByProjectStatus(PENDING);
|
||||
}
|
||||
|
||||
public void deleteProjectById(Long id) {
|
||||
|
Reference in New Issue
Block a user