fix: make prices optional param when updating a variant (#2155)
**Why** - It should be possible to update variant props without having to send the prices array with every update
This commit is contained in:
@@ -310,6 +310,7 @@ export class AdminPostProductsProductVariantsVariantReq {
|
||||
metadata?: object
|
||||
|
||||
@IsArray()
|
||||
@IsOptional()
|
||||
@ValidateNested({ each: true })
|
||||
@Type(() => ProductVariantPricesUpdateReq)
|
||||
prices: ProductVariantPricesUpdateReq[]
|
||||
|
||||
Reference in New Issue
Block a user