Skip to content

Commit

Permalink
docs: fix typo (#1292)
Browse files Browse the repository at this point in the history
  • Loading branch information
arwin4 committed Apr 29, 2024
1 parent 42ae27f commit 2c80f85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/api/check-schema.md
Expand Up @@ -21,7 +21,7 @@ app.post(
'/signup',
checkSchema({
email: { isEmail: true },
pasword: { isLength: { options: { min: 8 } } },
password: { isLength: { options: { min: 8 } } },
}),
(req, res) => {
// Handle request
Expand All @@ -48,7 +48,7 @@ you can also run it manually, if you wish.
app.post('/signup', async (req, res) => {
const result = await checkSchema({
email: { isEmail: true },
pasword: { isLength: { options: { min: 8 } } },
password: { isLength: { options: { min: 8 } } },
}).run(req);

if (!result.isEmpty()) {
Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-7.0.0/api/check-schema.md
Expand Up @@ -21,7 +21,7 @@ app.post(
'/signup',
checkSchema({
email: { isEmail: true },
pasword: { isLength: { options: { min: 8 } } },
password: { isLength: { options: { min: 8 } } },
}),
(req, res) => {
// Handle request
Expand All @@ -48,7 +48,7 @@ you can also run it manually, if you wish.
app.post('/signup', async (req, res) => {
const result = await checkSchema({
email: { isEmail: true },
pasword: { isLength: { options: { min: 8 } } },
password: { isLength: { options: { min: 8 } } },
}).run(req);

if (!result.isEmpty()) {
Expand Down

0 comments on commit 2c80f85

Please sign in to comment.