Skip to content

Commit

Permalink
fixed getSubtypes function
Browse files Browse the repository at this point in the history
  • Loading branch information
avneesh-akto committed Nov 22, 2024
1 parent 25a3c96 commit e557151
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/dao/src/main/java/com/akto/dto/type/KeyTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ private static SubType getSubtype(Object o,String key, boolean checkForSubtypes,

public static SubType findSubType(Object o,String key, ParamId paramId, boolean executeCheckForSubtypes){
if(executeCheckForSubtypes){
return getSubtype(o, key, true, true);
return getSubtype(o, key, true, paramId == null ? false: paramId.isHeader());
}else{
return findSubType(o, key, paramId);
}
Expand All @@ -260,7 +260,7 @@ public static SubType findSubType(Object o,String key, ParamId paramId) {
checkForSubtypes = checkForSubtypesTest(paramId, ignoreData);
}

return getSubtype(o, key, checkForSubtypes, true);
return getSubtype(o, key, checkForSubtypes, paramId == null ? false: paramId.isHeader());
}

public Map<SubType,SingleTypeInfo> getOccurrences() {
Expand Down

0 comments on commit e557151

Please sign in to comment.