commerce/providers/saleor/utils/checkout-attach.ts
Loui Nissen-Petersen 03dcf96fb1 rename folder
2021-07-16 16:58:03 +02:00

13 lines
323 B
TypeScript

import * as mutation from './mutations'
import { CheckoutCustomerAttach } from '../schema'
export const checkoutAttach = async (fetch: any, { variables, headers }: any): Promise<CheckoutCustomerAttach> => {
const data = await fetch({
query: mutation.CheckoutAttach,
variables,
headers,
})
return data
}