bug
This commit is contained in:
@@ -221,7 +221,7 @@ export class OrderService {
|
||||
}
|
||||
|
||||
async findPrints(dto: FindOrdersDto) {
|
||||
const orders = await this.orderRepository.findAllPaginated({...dto,statuses:[]})
|
||||
const orders = await this.orderRepository.findAllPaginated({ ...dto, statuses: [] })
|
||||
return orders
|
||||
}
|
||||
|
||||
@@ -325,7 +325,8 @@ export class OrderService {
|
||||
}
|
||||
|
||||
async createInvoice(orderId: string) {
|
||||
await this.updateStatus(orderId, OrderStatusEnum.INVOICED)
|
||||
const order = await this.updateStatus(orderId, OrderStatusEnum.INVOICED)
|
||||
return order
|
||||
}
|
||||
|
||||
async getOrderAsUser(userId: string, orderId: string) {
|
||||
|
||||
Reference in New Issue
Block a user