favouuriteProduct added page and page size

This commit is contained in:
Samandar Turgunboyev
2026-03-16 16:11:58 +05:00
parent 3d1d9d4860
commit 05c15a4f70

View File

@@ -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') {