fix(medusa): Product export strategy (#1713)

This commit is contained in:
Adrien de Peretti
2022-06-27 10:48:56 +02:00
committed by GitHub
parent cc29b641c9
commit 89cb717461
3 changed files with 26 additions and 1 deletions

View File

@@ -57,6 +57,13 @@ export const defaultAdminBatchFields = [
"created_at",
"updated_at",
"deleted_at",
"confirmed_at",
"pre_processed_at",
"confirmed_at",
"processing_at",
"completed_at",
"canceled_at",
"failed_at",
]
export * from "./cancel-batch-job"

View File

@@ -128,7 +128,7 @@ export default class ProductExportStrategy extends AbstractBatchJobStrategy<
imageCount
)
for (const variant of product.variants) {
for (const variant of product?.variants ?? []) {
if (variant.prices?.length) {
variant.prices.forEach((price) => {
pricesData.add(