Little refactor

This commit is contained in:
Filip Izydorczyk
2020-10-13 17:13:43 +02:00
parent 148d7a31c6
commit 932e1a8830
9 changed files with 12 additions and 35 deletions

View File

@ -39,8 +39,7 @@ public class AssignmentsController extends TokenBasedController {
if (com.isPresent()) {
List<Assignment> respone = this.assignmentService.getCommisionAssignments(com.get());
return new ResponseEntity<>(AssignmentResponseMappers.mapAssignmentsListToAssignmentResponseList(respone),
HttpStatus.OK);
return new ResponseEntity<>(AssignmentResponseMappers.mapToResponse(respone), HttpStatus.OK);
}
return new ResponseEntity<>(null, HttpStatus.OK);