Преглед изворни кода

fix(core): Remove duplicate call in applyCouponCode resolver

Michael Bromley пре 1 година
родитељ
комит
bffc58a1da
1 измењених фајлова са 0 додато и 1 уклоњено
  1. 0 1
      packages/core/src/api/resolvers/shop/shop-order.resolver.ts

+ 0 - 1
packages/core/src/api/resolvers/shop/shop-order.resolver.ts

@@ -385,7 +385,6 @@ export class ShopOrderResolver {
             true,
         );
         return this.orderService.applyCouponCode(ctx, order.id, args.couponCode);
-        return this.orderService.applyCouponCode(ctx, order.id, args.couponCode);
     }
 
     @Transaction()