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:
Sebastian Rindom authored and GitHub committed 2022-09-06 13:49:18 +00:00
1 parent 70139d0bbb
commit af80e0fd2e
3 files changed
+48

No files matched your search

@@ -310,6 +310,7 @@ export class AdminPostProductsProductVariantsVariantReq {
metadata?: object
@IsArray()
@IsOptional()
@ValidateNested({ each: true })
@Type(() => ProductVariantPricesUpdateReq)
prices: ProductVariantPricesUpdateReq[]