Small getAll fixes
This commit is contained in:
@@ -40,7 +40,7 @@ const webflow = new WebflowClient({
|
||||
|
||||
const syncer = new ProductSyncer(printful, webflow);
|
||||
|
||||
const wProducts = await webflow.Products.getAll();
|
||||
const wProducts = await webflow.Products.getAll({ forceAll: true });
|
||||
|
||||
let invalidCount = 0;
|
||||
for (const wProduct of wProducts) {
|
||||
|
||||
@@ -17,11 +17,11 @@ const webflow = new WebflowClient({
|
||||
webhookSecret: WEBFLOW_WEBHOOK_SECRET,
|
||||
});
|
||||
|
||||
export const load = async ({}: Parameters<PageServerLoad>[0]) => {
|
||||
export const load = async ({ }: Parameters<PageServerLoad>[0]) => {
|
||||
return {
|
||||
products: {
|
||||
printful: printful.Products.getAll(),
|
||||
webflow: webflow.Products.getAll(),
|
||||
printful: printful.Products.getAll({ forceAll: true }),
|
||||
webflow: webflow.Products.getAll({ forceAll: true }),
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user