Skip to content

Commit

Permalink
fix names
Browse files Browse the repository at this point in the history
  • Loading branch information
hitk6 committed Jun 12, 2024
1 parent 8e9b3eb commit 8724ab2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,12 @@ public void addSort(String guid, ArrayList sort) {
if(MapUtils.isEmpty(this.searchMetadata)) {
this.searchMetadata = new LinkedHashMap<>();
}
ElasticsearchMetadata v = this.searchMetadata.getOrDefault(guid, new ElasticsearchMetadata());
v.addSort(sort);
ElasticsearchMetadata sortMetadata = this.searchMetadata.getOrDefault(guid, new ElasticsearchMetadata());
sortMetadata.addSort(sort);
if (this.searchMetadata.containsKey(guid)) {
this.searchMetadata.replace(guid, v);
this.searchMetadata.replace(guid, sortMetadata);
} else {
this.searchMetadata.put(guid, v);
this.searchMetadata.put(guid, sortMetadata);
}
}

Expand Down

0 comments on commit 8724ab2

Please sign in to comment.