product pagination

This commit is contained in:
Sibunnayak 2024-11-26 16:57:46 +05:30
parent b080811b8a
commit 9aa6c8180d

View File

@ -561,7 +561,7 @@ export const getAllProductUser = async (req, res) => {
return res.status(200).json({ return res.status(200).json({
success: true, success: true,
total_data: total, total_data: total,
total_pages: Math.ceil(total / PAGE_SIZE), // total_pages: Math.ceil(total / PAGE_SIZE),
products, products,
}); });
} catch (error) { } catch (error) {