fix (kinda) : refactored update of data, still trying to fix bug
from EntrepreneurApiServiceTests (code is a bit messy with prints and comments dw)
This commit is contained in:
@ -45,7 +45,7 @@ public class UtilsService {
|
||||
User user = this.userService.getUserByEmail(mail);
|
||||
Entrepreneur entrepreneur = this.entrepreneurService.getEntrepreneurById(user.getIdUser());
|
||||
Project project = this.projectService.getProjectById(projectId);
|
||||
return entrepreneur.getProjectParticipation() == project;
|
||||
return entrepreneur.getProjectParticipation().equals(project);
|
||||
}
|
||||
|
||||
// TODO: test
|
||||
|
Reference in New Issue
Block a user