diff --git a/packages/elasticsearch-plugin/src/elasticsearch.service.ts b/packages/elasticsearch-plugin/src/elasticsearch.service.ts index c2af3a4f3d..cea750f084 100644 --- a/packages/elasticsearch-plugin/src/elasticsearch.service.ts +++ b/packages/elasticsearch-plugin/src/elasticsearch.service.ts @@ -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;