fix: update-product
This commit is contained in:
1 parent
e016183974
commit
0320788aac
1 file changed
+3
@@ -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