clean order services

This commit is contained in:
2026-01-27 14:52:55 +03:30
parent 935f905e29
commit e2b065aa2b
9 changed files with 319 additions and 277 deletions
@@ -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);