Skip to content

Commit 64a6e10

Browse files
committed
fix: allow update milestone start/end dates
1 parent 7a23414 commit 64a6e10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/milestones/update.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ const schema = {
2222
name: Joi.string().max(255).optional(),
2323
description: Joi.string().max(255),
2424
duration: Joi.number().integer().min(1).optional(),
25-
startDate: Joi.any().forbidden(),
25+
startDate: Joi.date().allow(null),
2626
actualStartDate: Joi.date().allow(null),
27-
endDate: Joi.any().forbidden(),
27+
endDate: Joi.date().min(Joi.ref('startDate')).allow(null),
2828
completionDate: Joi.date().allow(null),
2929
status: Joi.string().max(45).optional(),
3030
type: Joi.string().max(45).optional(),

0 commit comments

Comments
 (0)