up
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-07-17 18:43:34 +03:30
parent e110825783
commit e84f2a5f4c
+4 -1
View File
@@ -435,7 +435,10 @@ export class OrderService {
// -----------Hrlper Methods -----------
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) {
throw new NotFoundException(`Order with ID ${id} not found.`);
}