backend-test #10

Open
piair wants to merge 51 commits from backend-test into main
2 changed files with 1 additions and 3 deletions
Showing only changes of commit b503cae235 - Show all commits

View File

@ -1,6 +1,5 @@
package enseirb.myinpulse.controller; package enseirb.myinpulse.controller;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.core.annotation.AuthenticationPrincipal; import org.springframework.security.core.annotation.AuthenticationPrincipal;

View File

@ -14,7 +14,6 @@ import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.web.server.ResponseStatusException; import org.springframework.web.server.ResponseStatusException;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -227,7 +226,7 @@ public class EntrepreneurApiService {
Long UserId = this.userService.getUserByEmail(email).getIdUser(); Long UserId = this.userService.getUserByEmail(email).getIdUser();
Entrepreneur entrepreneur = this.entrepreneurService.getEntrepreneurById(UserId); Entrepreneur entrepreneur = this.entrepreneurService.getEntrepreneurById(UserId);
List<Project> Project_List = new ArrayList<>(); List<Project> Project_List = new ArrayList<>();
;
Project_List.add(entrepreneur.getProjectParticipation()); Project_List.add(entrepreneur.getProjectParticipation());
return Project_List; return Project_List;
} }