mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
saleor: unify GraphQL naming approach
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { getConfig, SaleorConfig } from '../api'
|
||||
import { getCustomerIdQuery } from '../utils/queries'
|
||||
import * as query from '../utils/queries'
|
||||
import Cookies from 'js-cookie'
|
||||
|
||||
async function getCustomerId({
|
||||
@@ -11,7 +11,7 @@ async function getCustomerId({
|
||||
}): Promise<number | undefined> {
|
||||
config = getConfig(config)
|
||||
|
||||
const { data } = await config.fetch(getCustomerIdQuery, {
|
||||
const { data } = await config.fetch(query.CustomerOne, {
|
||||
variables: {
|
||||
customerAccesToken:
|
||||
customerAccesToken || Cookies.get(config.customerCookie),
|
||||
|
Reference in New Issue
Block a user