Skip to content

Commit

Permalink
Primary Category for aligning current UI & need to move back to conte…
Browse files Browse the repository at this point in the history
…xtType
  • Loading branch information
saipradeep_ravipati committed Dec 4, 2023
1 parent 40b1363 commit 5685ec8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public Map<String, Object> trendingSearch(Map<String, Object> requestBody, Strin
SBApiResponse response = ProjectUtil.createDefaultResponse(API_TRENDING_SEARCH);
HashMap<String, Object> request = (HashMap<String, Object>) requestBody.get(Constants.REQUEST) ==null ? new HashMap<>() : (HashMap<String, Object>) requestBody.get(Constants.REQUEST);
HashMap<String, Object> filter = ((HashMap<String, Object>) request.get(Constants.FILTERS)) ==null ? new HashMap<>() : ((HashMap<String, Object>) request.get(Constants.FILTERS));
ArrayList<String> primaryCategoryList = ((ArrayList<String>) (filter).get(Constants.CONTEXT_TYPE)) == null ? new ArrayList<>() : ((ArrayList<String>) (filter).get(CONTEXT_TYPE));
ArrayList<String> primaryCategoryList = ((ArrayList<String>) (filter).get(PRIMARY_CATEGORY)) == null ? new ArrayList<>() : ((ArrayList<String>) (filter).get(PRIMARY_CATEGORY));

String org = ((String) (filter).get(Constants.ORGANISATION)) == null ? "" : ((String) (filter).get(Constants.ORGANISATION)) ;
int limit = Optional.ofNullable(request.get(Constants.LIMIT)).map(l -> (Integer) l).orElse(0);
Expand Down

0 comments on commit 5685ec8

Please sign in to comment.