favouuriteProduct added page and page size
This commit is contained in:
@@ -18,7 +18,7 @@ export async function generateMetadata({
|
|||||||
}: PageProps): Promise<Metadata> {
|
}: PageProps): Promise<Metadata> {
|
||||||
const { locale } = await params;
|
const { locale } = await params;
|
||||||
try {
|
try {
|
||||||
const res = await product_api.favouuriteProduct();
|
const res = await product_api.favouuriteProduct({ page: 1, page_size: 1 });
|
||||||
const total = res.data.total;
|
const total = res.data.total;
|
||||||
|
|
||||||
if (locale === 'ru') {
|
if (locale === 'ru') {
|
||||||
|
|||||||
Reference in New Issue
Block a user