Skip to content

Commit

Permalink
[Hexlet#260] forget to add pageable in parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
d1z3d committed Jun 2, 2024
1 parent c89b839 commit a7e4932
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,9 @@ public String getWorkspaceUsersPage(final Model model,
public String addUser(@ModelAttribute("inputEmail") @Valid WorkspaceUserModel workspaceUserModel,
BindingResult bindingResult,
Model model,
@PathVariable Long wksId) {
@PathVariable Long wksId,
@SortDefault("createdDate") Pageable pageable
) {
model.addAttribute("formModified", true);
if (bindingResult.hasErrors()) {
Optional<WorkspaceInfo> workSpaceInfoOptional = workspaceService.getWorkspaceInfoById(wksId);
Expand Down

0 comments on commit a7e4932

Please sign in to comment.