replace order count
This commit is contained in:
1 parent
77a84af35c
commit
1edee26e7b
1 file changed
+2
-1
@@ -248,7 +248,8 @@ class OrderService extends BaseService {
|
|||||||
query.relations = relations
|
query.relations = relations
|
||||||
}
|
}
|
||||||
|
|
||||||
const [raw, count] = await orderRepo.findAndCount(query)
|
const raw = await orderRepo.findWithRelations(query.relations, query)
|
||||||
|
const count = await orderRepo.count(query)
|
||||||
const orders = raw.map(r => this.decorateTotals_(r, totalsToSelect))
|
const orders = raw.map(r => this.decorateTotals_(r, totalsToSelect))
|
||||||
|
|
||||||
return [orders, count]
|
return [orders, count]
|
||||||
|
|||||||
Reference in new issue
Block a user