Rename getAll to list
This commit is contained in:
@@ -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({ forceAll: true });
|
||||
const webflowProducts: Webflow.Products.ProductAndSkus[] = await this.webflow.Products.list({ forceAll: true });
|
||||
|
||||
this.log.debug("populating printful products");
|
||||
let printfulProducts = await this.printful.Products.getAll({ forceAll: true });
|
||||
let printfulProducts = await this.printful.Products.list({ forceAll: true });
|
||||
if (printfulProductId) {
|
||||
const printfulProduct = printfulProducts.find((p) => p.id === printfulProductId);
|
||||
if (printfulProduct) {
|
||||
|
||||
Reference in New Issue
Block a user