Skip to content

Commit

Permalink
[Bugfix](manager) fix query profile key incompatible with old versions (
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzhg authored Oct 26, 2022
1 parent 65aa863 commit 0841c5b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,9 @@ private ResponseEntity getProfileFromAllFrontends(HttpServletRequest request, St
Map<String, String> result = Maps.newHashMap();
if (!dataList.isEmpty()) {
try {
String profile = JsonParser.parseString(dataList.get(0)).getAsJsonObject().get("profile").getAsString();
result.put("profile", profile);
String key = format.equals("graph") ? "graph" : "profile";
String profile = JsonParser.parseString(dataList.get(0)).getAsJsonObject().get(key).getAsString();
result.put(key, profile);
} catch (Exception e) {
return ResponseEntityBuilder.badRequest(e.getMessage());
}
Expand Down

0 comments on commit 0841c5b

Please sign in to comment.