change validator location

This commit is contained in:
xfarrow
2024-03-06 16:02:22 +01:00
parent de8e091231
commit e8d52f1acb
2 changed files with 5 additions and 3 deletions

View File

@ -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({