clean order services
This commit is contained in:
@@ -61,7 +61,7 @@ export class PaymentService {
|
||||
private async loadAndValidateOrder(orderId: string, dto: PayOrderDto, adminId?: string): Promise<OrderPaymentContext> {
|
||||
const { amount, method, attachments, description, gateway } = dto
|
||||
|
||||
const order = await this.orderService.findOneOrFail(orderId)
|
||||
const order = await this.orderService.findOrderOrFail(orderId)
|
||||
|
||||
if (!order) {
|
||||
throw new NotFoundException(OrderMessage.NOT_FOUND);
|
||||
|
||||
Reference in New Issue
Block a user