mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
change validator location
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
const {
|
||||
check,
|
||||
validationResult
|
||||
} = require("express-validator");
|
||||
} = require("express-validator"); // This is the destructuring part. It specifies which properties of the imported object (express-validator) you want to extract.
|
||||
|
||||
const registerValidator = [
|
||||
check('display_name').trim().notEmpty().escape().isLength({
|
Reference in New Issue
Block a user