Add category SEO description for storefront category pages.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
835c8a0ac1
commit
b661877d77
@@ -16,13 +16,17 @@ export class PublicController {
|
||||
@Query('storeSlug') storeSlug?: string,
|
||||
@Query('name') name?: string,
|
||||
@Query('categoryId') categoryId?: string,
|
||||
@Query('minPrice') minPrice?: number,
|
||||
@Query('maxPrice') maxPrice?: number,
|
||||
@Query('minPrice') minPrice?: string,
|
||||
@Query('maxPrice') maxPrice?: string,
|
||||
) {
|
||||
const parsedCategoryId =
|
||||
categoryId !== undefined && categoryId !== ''
|
||||
? Number(categoryId)
|
||||
: undefined;
|
||||
const parsedMin =
|
||||
minPrice !== undefined && minPrice !== '' ? Number(minPrice) : undefined;
|
||||
const parsedMax =
|
||||
maxPrice !== undefined && maxPrice !== '' ? Number(maxPrice) : undefined;
|
||||
return this.publicService.listProducts({
|
||||
storeId,
|
||||
storeSlug,
|
||||
@@ -31,8 +35,14 @@ export class PublicController {
|
||||
parsedCategoryId !== undefined && Number.isFinite(parsedCategoryId)
|
||||
? parsedCategoryId
|
||||
: undefined,
|
||||
minPrice,
|
||||
maxPrice,
|
||||
minPrice:
|
||||
parsedMin !== undefined && Number.isFinite(parsedMin)
|
||||
? parsedMin
|
||||
: undefined,
|
||||
maxPrice:
|
||||
parsedMax !== undefined && Number.isFinite(parsedMax)
|
||||
? parsedMax
|
||||
: undefined,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user