Error fix
This commit is contained in:
@ -49,9 +49,9 @@ public class CommisionController extends TokenBasedController {
|
||||
}
|
||||
|
||||
@PostMapping("/user")
|
||||
@ApiOperation("Create commision with assignents to given groups. If group doesn't exist error will be thrown")
|
||||
@ApiOperation(value = "Create commision with assignents to given groups. If group doesn't exist error will be thrown")
|
||||
public ResponseEntity<String> addCommision(
|
||||
@RequestBody @ApiParam(value = "List of groups ids user want to assign to. If group doesnt exisit error will be thrown", example = "[12,7,3]") List<Long> groups)
|
||||
@RequestBody @ApiParam(value = "List of groups ids user want to assign to. If group doesnt exisit error will be thrown") List<Long> groups)
|
||||
throws UserNotFoundException {
|
||||
|
||||
User user = this.getCurrentUser().orElseThrow(() -> new NullPointerException());
|
||||
|
Reference in New Issue
Block a user