Просмотр исходного кода

fix(core): Remove duplicate call in applyCouponCode resolver

Michael Bromley 1 год назад
Родитель
Сommit
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()