diff --git a/src/modules/coupons/controllers/coupon.controller.ts b/src/modules/coupons/controllers/coupon.controller.ts index ca54469..339f563 100644 --- a/src/modules/coupons/controllers/coupon.controller.ts +++ b/src/modules/coupons/controllers/coupon.controller.ts @@ -7,8 +7,6 @@ import { ApiTags, ApiOperation, ApiCreatedResponse, - ApiOkResponse, - ApiNotFoundResponse, ApiQuery, ApiBody, ApiParam, diff --git a/src/modules/orders/providers/orders.service.ts b/src/modules/orders/providers/orders.service.ts index f3254f6..6c63ba3 100644 --- a/src/modules/orders/providers/orders.service.ts +++ b/src/modules/orders/providers/orders.service.ts @@ -391,7 +391,8 @@ console.log(cart); if ( from == OrderStatus.PENDING_PAYMENT && to == OrderStatus.PREPARING && - paymentMethod !== PaymentMethodEnum.Cash + paymentMethod !== PaymentMethodEnum.Cash && + paymentMethod !== PaymentMethodEnum.CreditCard ) { return false; }