diff --git a/src/main/java/ru/soune/nocopy/handler/UserInfoHandler.java b/src/main/java/ru/soune/nocopy/handler/UserInfoHandler.java index e2f78c5..850723b 100644 --- a/src/main/java/ru/soune/nocopy/handler/UserInfoHandler.java +++ b/src/main/java/ru/soune/nocopy/handler/UserInfoHandler.java @@ -50,8 +50,8 @@ public class UserInfoHandler implements RequestHandler { log.info("Processing UserInfoHandler with action: {}", body.getAction()); return switch (body.getAction()) { -// case "getAll" -> getAllAdditionalInfos(request); - case "getAll" -> getAllAdditionalInfoWithPagination(request, body); + case "getAll" -> getAllAdditionalInfos(request); + case "getAllWithPagination" -> getAllAdditionalInfoWithPagination(request, body); case "getById" -> getAdditionalInfoById(request, body.getUserId()); case "update" -> updateAdditionalInfo(request, body); case "delete" -> deleteAdditionalInfo(request, body.getUserId());