mirror of
https://github.com/vercel/commerce.git
synced 2025-07-25 19:21:23 +00:00
Adjust fetchers to the latest Spree SDK interface
This commit is contained in:
@@ -58,6 +58,7 @@ export default function getAllProductPathsOperation({
|
||||
const variables: SpreeSdkVariables = {
|
||||
methodPath: 'products.list',
|
||||
arguments: [
|
||||
{},
|
||||
{
|
||||
fields: {
|
||||
product: 'slug',
|
||||
|
@@ -45,6 +45,7 @@ export default function getAllProductsOperation({
|
||||
const variables: SpreeSdkVariables = {
|
||||
methodPath: 'products.list',
|
||||
arguments: [
|
||||
{},
|
||||
{
|
||||
include: 'variants,images,option_types,variants.option_values',
|
||||
per_page: first,
|
||||
|
@@ -52,6 +52,7 @@ export default function getProductOperation({
|
||||
methodPath: 'products.show',
|
||||
arguments: [
|
||||
getProductVariables.slug,
|
||||
{},
|
||||
{
|
||||
include: 'variants,images,option_types,variants.option_values',
|
||||
},
|
||||
|
Reference in New Issue
Block a user