Changeset 8f1f460 for src/main/java/it/finki/tinki/web
- Timestamp:
- 01/11/21 18:58:30 (3 years ago)
- Branches:
- master
- Children:
- 33d4f5d
- Parents:
- 5f9d25a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/it/finki/tinki/web/controller/WorkEditController.java
r5f9d25a r8f1f460 40 40 @RequestBody InternshipRegisterDTO body){ 41 41 42 if(body.getAccountId().equals(this.workService.get JobById(id).getAccount().getId())){42 if(body.getAccountId().equals(this.workService.getInternshipById(id).getAccount().getId())){ 43 43 Internship k = this.workService.editInternship(id, body.getTitle(), body.getDescription(), body.getSalary(), body.getOpenSpots()); 44 44 return new InternshipResponseDTO(k); … … 51 51 @RequestBody ProjectRegisterDTO body){ 52 52 53 if(body.getAccountId().equals(this.workService.get JobById(id).getAccount().getId())) {53 if(body.getAccountId().equals(this.workService.getProjectById(id).getAccount().getId())) { 54 54 Project k = this.workService.editProject(id, body.getTitle(), body.getDescription(), body.getSalary()); 55 55 return new ProjectResponseDTO(k);
Note:
See TracChangeset
for help on using the changeset viewer.