feat(medusa): PriceList import strategy (#2210)
This commit is contained in:
1 parent
884f36e8a8
commit
7dc8d3a0c9
17 files changed
+1129
-21
No files matched your search
@@ -10,6 +10,7 @@ export type ProductVariantFactoryData = {
|
||||
product_id: string
|
||||
id?: string
|
||||
is_giftcard?: boolean
|
||||
sku?: string
|
||||
inventory_quantity?: number
|
||||
title?: string
|
||||
options?: { option_id: string; value: string }[]
|
||||
@@ -31,6 +32,7 @@ export const simpleProductVariantFactory = async (
|
||||
const toSave = manager.create(ProductVariant, {
|
||||
id,
|
||||
product_id: data.product_id,
|
||||
sku: data.sku ?? null,
|
||||
inventory_quantity:
|
||||
typeof data.inventory_quantity !== "undefined"
|
||||
? data.inventory_quantity
|
||||
|
||||
Reference in new issue
Block a user