Update order.ts
This commit is contained in:
parent
64d4d26909
commit
1e9796104d
1 changed files with 2 additions and 1 deletions
|
|
@ -543,6 +543,7 @@ export async function getAllOrders(input: GetAllOrdersInput): Promise<AdminGetAl
|
||||||
}))
|
}))
|
||||||
.sort((first: any, second: any) => first.id - second.id)
|
.sort((first: any, second: any) => first.id - second.id)
|
||||||
|
|
||||||
|
order.address = order.address || {}
|
||||||
return {
|
return {
|
||||||
id: order.id,
|
id: order.id,
|
||||||
orderId: order.id.toString(),
|
orderId: order.id.toString(),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue