diff --git a/src/repositories/product-projection.ts b/src/repositories/product-projection.ts index 561a3a8b..f9bd41ca 100644 --- a/src/repositories/product-projection.ts +++ b/src/repositories/product-projection.ts @@ -50,7 +50,9 @@ export class ProductProjectionRepository extends AbstractResourceRepository { } search(context: RepositoryContext, query: ParsedQs) { - const expand = query.expand ? query.expand as string | string[] : undefined + const expand = query.expand + ? (query.expand as string | string[]) + : undefined const filter = (query['filter.query'] ?? query.filter) as any const wherePredicate = filter ? parseFilterExpression(filter) : undefined