summaryrefslogtreecommitdiff
path: root/src/pages/google_merchant/products/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/google_merchant/products/index.js')
-rw-r--r--src/pages/google_merchant/products/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pages/google_merchant/products/index.js b/src/pages/google_merchant/products/index.js
index a1f59d39..d3cdc514 100644
--- a/src/pages/google_merchant/products/index.js
+++ b/src/pages/google_merchant/products/index.js
@@ -1,4 +1,5 @@
import productSearchApi from '@/lib/product/api/productSearchApi'
+import variantSearchApi from '@/lib/product/api/variantSearchApi'
import _ from 'lodash-contrib'
const limit = 5000
@@ -9,7 +10,7 @@ export async function getServerSideProps() {
priceFrom: 1,
fq: 'image_s:["" TO *]'
}
- const products = await productSearchApi({ query: _.toQuery(queries) })
+ const products = await variantSearchApi({ query: _.toQuery(queries) })
const { numFound } = products.response
const pageTotal = Math.ceil(numFound / limit)