Skip to content

Commit dcfc62b

Browse files
author
Vikas Agarwal
committed
fixing unit test
1 parent 488c5ac commit dcfc62b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/phases/create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = [
5454
}
5555
if (data.startDate !== null && data.endDate !== null && data.startDate > data.endDate) {
5656
const err = new Error('startDate must not be after endDate.');
57-
err.status = 400;
57+
err.status = 422;
5858
throw err;
5959
}
6060
return models.ProjectPhase

0 commit comments

Comments
 (0)