Skip to content

Commit edf4eb1

Browse files
committed
fix: validator message
1 parent b75ad9a commit edf4eb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

middlewares/postValidator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const validateUser = [
44
body("message")
55
.trim()
66
.isLength({ min: 10, max: 500 })
7-
.withMessage("'message must be between 3 and 500 characters long"),
7+
.withMessage("'message must be between 10 and 500 characters long"),
88
];
99

1010
module.exports = validateUser;

0 commit comments

Comments
 (0)