Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

Commit cefa17d

Browse files
upper limit on search response count down
1 parent af09f2b commit cefa17d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/brapi/test/BrAPITestServer/service/SearchService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public SearchService(SearchRepository searchRepository) {
2323

2424
public String saveSearchRequest(SearchRequest body, SearchRequestTypes type) throws BrAPIServerException {
2525

26-
Integer paramCount = body.getTotalParameterCount();
26+
Integer paramCount = body.getTotalParameterCount() < 14? body.getTotalParameterCount() : 14;
27+
2728

2829
if (paramCount < 5) {
2930
return null;

0 commit comments

Comments
 (0)