diff --git a/framework/saleor/api/operations/get-all-product-paths.ts b/framework/saleor/api/operations/get-all-product-paths.ts index 43ce7de94..c04964147 100644 --- a/framework/saleor/api/operations/get-all-product-paths.ts +++ b/framework/saleor/api/operations/get-all-product-paths.ts @@ -1,10 +1,6 @@ import type { OperationContext } from '@commerce/api/operations' -import { - GetAllProductPathsQuery, - GetAllProductPathsQueryVariables, - ProductCountableEdge, -} from '../../schema' -import type { ShopifyConfig, Provider, SaleorConfig } from '..' +import { ProductCountableEdge } from '../../schema' +import type { Provider, SaleorConfig } from '..' import { getAllProductsPathsQuery } from '../../utils/queries' import fetchAllProducts from '../utils/fetch-all-products' @@ -13,10 +9,7 @@ export type GetAllProductPathsResult = { products: Array<{ path: string }> } -export default function getAllProductPathsOperation({ - commerce, -}: OperationContext) { - +export default function getAllProductPathsOperation({ commerce }: OperationContext) { async function getAllProductPaths({ query, config, @@ -24,7 +17,7 @@ export default function getAllProductPathsOperation({ }: { query?: string config?: SaleorConfig - variables?: any + variables?: any } = {}): Promise { config = commerce.getConfig(config) @@ -39,7 +32,6 @@ export default function getAllProductPathsOperation({ path: `/${slug}`, })), } - } return getAllProductPaths