add: pageSize in findAllForPartner
This commit is contained in:
parent
7e525b3cff
commit
af8f42c2d3
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user