Improve getAll webflow/printful client api

This commit is contained in:
Dominic Ferrando
2026-06-24 16:32:03 -04:00
parent d415685a81
commit 43089c03b6
5 changed files with 104 additions and 61 deletions
+2 -2
View File
@@ -42,10 +42,10 @@ export class ProductSyncer {
await this.setState({ isSyncing: true, syncingIds: [] });
this.log.debug("populating webflow products");
const webflowProducts: Webflow.Products.ProductAndSkus[] = await this.webflow.Products.getAll();
const webflowProducts: Webflow.Products.ProductAndSkus[] = await this.webflow.Products.getAll({ forceAll: true });
this.log.debug("populating printful products");
let printfulProducts = await this.printful.Products.getAll();
let printfulProducts = await this.printful.Products.getAll({ forceAll: true });
if (printfulProductId) {
const printfulProduct = printfulProducts.find((p) => p.id === printfulProductId);
if (printfulProduct) {