Skip to content

Commit 76e4ad7

Browse files
ID: FPCO-24112; Update arguments of updated getProductsApp method
1 parent 502d1cb commit 76e4ad7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/fynd/example/java/controller/PlatformController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class PlatformController extends BasePlatformController {
2222
public CatalogPlatformModels.ProductListingResponseV2 getProducts(HttpServletRequest request) {
2323
try {
2424
PlatformClient platformClient = (PlatformClient) request.getAttribute("platformClient");
25-
return platformClient.catalog.getProducts(Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), "", "", Collections.emptyList(), "", Collections.emptyList(), 1, 10, "", "", "");
25+
return platformClient.catalog.getProducts(Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), "", "", Collections.emptyList(), "", Collections.emptyList(), 1, 10, "number", "latest", "");
2626

2727
} catch (Exception e) {
2828
System.out.println(e.getMessage());
@@ -34,7 +34,7 @@ public CatalogPlatformModels.ProductListingResponseV2 getProducts(HttpServletReq
3434
public CatalogPlatformModels.RawProductListingResponse getAppProducts(@PathVariable("application_id") String applicationId, HttpServletRequest request) {
3535
try {
3636
PlatformClient platformClient = (PlatformClient) request.getAttribute("platformClient");
37-
return platformClient.application(applicationId).catalog.getAppProducts(Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), "", "", Collections.emptyList(), "", Collections.emptyList(), 1, 10, "number", "latest", "");
37+
return platformClient.application(applicationId).catalog.getAppProducts(Collections.emptyList(),Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), 1, 10, "");
3838

3939
} catch (Exception e) {
4040
System.out.println(e.getMessage());

0 commit comments

Comments
 (0)