From af8d6737b0602af96e3c3ed58338abd6998933f0 Mon Sep 17 00:00:00 2001 From: Konstantin Fandelyuk Date: Fri, 6 Dec 2024 16:19:48 +0200 Subject: [PATCH] test 6 --- .../storefront-order/chunks/requestGuestOrderCancel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/__dropins__/storefront-order/chunks/requestGuestOrderCancel.js b/scripts/__dropins__/storefront-order/chunks/requestGuestOrderCancel.js index c6d464d3c..e44d404dd 100644 --- a/scripts/__dropins__/storefront-order/chunks/requestGuestOrderCancel.js +++ b/scripts/__dropins__/storefront-order/chunks/requestGuestOrderCancel.js @@ -1,6 +1,6 @@ /*! Copyright 2024 Adobe All Rights Reserved. */ -import{P as c,a as u,G as l,O as E,B as m,b as d}from"./transform-customer-orders-returns.js";import{O,A as D,G as R}from"./getGuestOrder.graphql.js";import{f as i,h as _}from"./fetch-graphql.js";const T=` +import{P as c,a as l,G as u,O as E,B as m,b as d}from"./transform-customer-orders-returns.js";import{O,A as D,G as R}from"./getGuestOrder.graphql.js";import{f as i,h as _}from"./fetch-graphql.js";const T=` mutation CANCEL_ORDER_MUTATION($orderId: ID!, $reason: String!) { cancelOrder(input: { order_id: $orderId, reason: $reason }) { error @@ -80,8 +80,8 @@ mutation CANCEL_ORDER_MUTATION($orderId: ID!, $reason: String!) { } } ${c} -${u} ${l} +${u} ${E} ${m} ${O} @@ -96,4 +96,4 @@ mutation REQUEST_GUEST_ORDER_CANCEL_MUTATION($token: String!, $reason: String!) } } ${R} -`,C=async(r,e,s,t)=>{if(!r)throw new Error("No order token found");if(!e)throw new Error("No reason found");return i(A,{variables:{token:r,reason:e}}).then(({errors:a,data:o})=>{if(a)return _(a);o.requestGuestOrderCancel.error!=null&&t();const n=d(o.requestGuestOrderCancel.order);s(n)}).catch(()=>t())};export{G as c,C as r}; +`,C=async(r,e,s,t)=>{if(console.log("token",r),!r)throw new Error("No order token found");if(!e)throw new Error("No reason found");return i(A,{variables:{token:r,reason:e}}).then(({errors:a,data:o})=>{if(a)return _(a);o.requestGuestOrderCancel.error!=null&&t();const n=d(o.requestGuestOrderCancel.order);s(n)}).catch(()=>t())};export{G as c,C as r};