product pagination
This commit is contained in:
parent
b080811b8a
commit
9aa6c8180d
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user