fix(medusa): Revert status type in API (#5428)

This commit is contained in:
Oli Juhl authored and GitHub committed 2023-10-26 08:11:01 +02:00
1 parent 2ac05066ac
commit ebba93e03d
3 files changed
+8 -1

No files matched your search

@@ -132,6 +132,7 @@ const useEditProductActions = (productId: string) => {
const newStatus = currentStatus === "published" ? "draft" : "published"
updateProduct.mutate(
{
// @ts-ignore TODO fix update type in API
status: newStatus,
},
{
@@ -669,7 +669,7 @@ export class AdminPostProductsProductReq {
@IsEnum(ProductStatus)
@NotEquals(null)
@ValidateIf((object, value) => value !== undefined)
status: ProductStatus
status?: ProductStatus
@IsOptional()
@Type(() => ProductTypeReq)