feat(medusa): PriceList import strategy (#2210)
This commit is contained in:
@@ -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