backend-test #10
@ -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;
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user