Fixes #127
parent
599152dbf3
commit
7252c309aa
|
@ -623,7 +623,7 @@ const getData = (req, page, query) => {
|
||||||
|
|
||||||
let skip = 0;
|
let skip = 0;
|
||||||
if(page > 1){
|
if(page > 1){
|
||||||
skip = (page - 1) * process.env.pageSize;
|
skip = (page - 1) * numberProducts;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!query){
|
if(!query){
|
||||||
|
|
Loading…
Reference in New Issue