Skip to content

Commit

Permalink
Elasticsearch: use correct exception text for hits aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
thePanz authored Jul 19, 2024
1 parent f40761d commit f642115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/elasticsearch-plugin/src/elasticsearch.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export class ElasticsearchService implements OnModuleInit, OnModuleDestroy {
const { aggregations } = body;
if (!aggregations) {
throw new InternalServerError(
'An error occurred when querying Elasticsearch for priceRange aggregations',
'An error occurred when querying Elasticsearch for total hits aggregation',
);
}
return aggregations.total ? aggregations.total.value : 0;
Expand Down

0 comments on commit f642115

Please sign in to comment.