fix: 创建问卷remark允许空 (#82)
This commit is contained in:
parent
c7fa38fefb
commit
39e89a4651
@ -51,8 +51,8 @@ export class SurveyController {
|
||||
req,
|
||||
) {
|
||||
const validationResult = await Joi.object({
|
||||
remark: Joi.string().required(),
|
||||
title: Joi.string().required(),
|
||||
remark: Joi.string().allow(null).default(''),
|
||||
surveyType: Joi.string().when('createMethod', {
|
||||
is: 'copy',
|
||||
then: Joi.allow(null),
|
||||
|
Loading…
Reference in New Issue
Block a user