fix: update-product
This commit is contained in:
@@ -6,6 +6,9 @@ export default async (req, res) => {
|
|||||||
|
|
||||||
const schema = Validator.object().keys({
|
const schema = Validator.object().keys({
|
||||||
title: Validator.string().optional(),
|
title: Validator.string().optional(),
|
||||||
|
subtitle: Validator.string()
|
||||||
|
.optional()
|
||||||
|
.allow(null, ""),
|
||||||
description: Validator.string().optional(),
|
description: Validator.string().optional(),
|
||||||
type: Validator.object()
|
type: Validator.object()
|
||||||
.keys({
|
.keys({
|
||||||
|
|||||||
Reference in New Issue
Block a user