add: pageSize in findAllForPartner
This commit is contained in:
@@ -336,8 +336,8 @@ export class ProductService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const data = await baseQuery
|
const data = await baseQuery
|
||||||
.offset(page * 10)
|
.offset(page * pageSize)
|
||||||
.limit(10)
|
.limit(pageSize)
|
||||||
.getRawMany();
|
.getRawMany();
|
||||||
|
|
||||||
const totalData = await baseQuery.getCount();
|
const totalData = await baseQuery.getCount();
|
||||||
|
|||||||
Reference in New Issue
Block a user