add: pageSize in findAllForPartner

This commit is contained in:
Ilham Dwi Pratama S 2021-12-29 07:21:32 +07:00
parent 7e525b3cff
commit af8f42c2d3

View File

@ -336,8 +336,8 @@ export class ProductService {
}
const data = await baseQuery
.offset(page * 10)
.limit(10)
.offset(page * pageSize)
.limit(pageSize)
.getRawMany();
const totalData = await baseQuery.getCount();