Skip to content

Commit

Permalink
Remove RecordType check from the query param
Browse files Browse the repository at this point in the history
  • Loading branch information
lnash94 committed Sep 18, 2024
1 parent bb44773 commit 447601d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,7 @@ private static String constructQueryString(BMap params) {
*/
private static Map<String, String> getQueryNameMapping(BMap params) {
Map<String, String> annotationValues = new HashMap<>();
if (!(params.getType() instanceof RecordType queryRecord)) {
return annotationValues;
}
RecordType queryRecord = (RecordType) params.getType();
BMap<BString, Object> queryFields = queryRecord.getAnnotations();

for (Map.Entry<BString, Object> qField: queryFields.entrySet()) {
Expand Down

0 comments on commit 447601d

Please sign in to comment.