Revert "Update plugins/catalog-backend/src/service/DefaultEntitiesCatalog.ts"

This reverts commit 9e65298395.

Signed-off-by: Aishwarya Manicka Ravichandran <airavichandra@expediagroup.com>
This commit is contained in:
Aishwarya Manicka Ravichandran
2022-11-29 06:54:51 -08:00
parent 9e65298395
commit eebdb6b1d6
@@ -404,7 +404,7 @@ export class DefaultEntitiesCatalog implements EntitiesCatalog {
const dbQuery = db<DbSearchRow>('search')
.join('final_entities', 'search.entity_id', 'final_entities.entity_id')
.where('search.key', facet.toLocaleLowerCase('en-US'))
.count('search.entity_id', { as: 'count' })
.count('search.entity_id as count')
.select({ value: 'search.original_value' })
.groupBy('search.original_value');