fix (kinda) : refactored update of data, still trying to fix bug
Some checks failed
Format / formatting (push) Successful in 6s
Build / build (push) Failing after 39s
CI / build (push) Successful in 11s

from EntrepreneurApiServiceTests (code is a bit messy with prints and comments dw)
This commit is contained in:
Théo Le Lez
2025-04-06 19:22:18 +02:00
parent 9b9cfbdb2e
commit aaa6e46d0c
14 changed files with 327 additions and 59 deletions

View File

@ -55,7 +55,7 @@ public class EntrepreneurApiService {
mail,
sectionCellId,
this.sectionCellService.getProjectId(sectionCellId));
sectionCellService.updateSectionCell(sectionCellId, content);
sectionCellService.updateSectionCell(sectionCellId, content, null, null, null);
}
public void removeSectionCell(Long sectionCellId, String mail) {
@ -71,7 +71,7 @@ public class EntrepreneurApiService {
"User {} tried to remove section cells {} of the project {} but is not allowed to.",
mail,
sectionCellId,
this.sectionCellService.getSectionCellById(sectionCellId));
this.sectionCellService.getProjectId(sectionCellId));
throw new ResponseStatusException(
HttpStatus.UNAUTHORIZED, "You're not allowed to check this project");
}