@@ -435,7 +435,10 @@ export class OrderService {
|
|||||||
|
|
||||||
// -----------Hrlper Methods -----------
|
// -----------Hrlper Methods -----------
|
||||||
async findOrderOrFail(id: string): Promise<Order> {
|
async findOrderOrFail(id: string): Promise<Order> {
|
||||||
const order = await this.em.findOne(Order, { id }, { populate: ['user', 'type', 'product', 'creator', 'designer'] });
|
const order = await this.em.findOne(Order, { id },
|
||||||
|
{
|
||||||
|
populate: ['user', 'type', 'product', 'creator', 'designer', 'invoiceItem'],
|
||||||
|
});
|
||||||
if (!order) {
|
if (!order) {
|
||||||
throw new NotFoundException(`Order with ID ${id} not found.`);
|
throw new NotFoundException(`Order with ID ${id} not found.`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user