Skip to content

Commit ea0238e

Browse files
committed
2 parents dd078e5 + e17651e commit ea0238e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ niv.extend('even', ({ value }) => {
398398
});
399399
```
400400

401-
#### Example of using other fileds in rule
401+
#### Example of using other fields in rule
402402

403403
```javascript
404404
const niv = require('node-input-validator');
@@ -440,11 +440,11 @@ const mongoose = require('mongoose');
440440

441441
niv.extend('unique', async ({ value, args }) => {
442442
// default field is email in this example
443-
const filed = args[1] || 'email';
443+
const field = args[1] || 'email';
444444

445445
let condition = {};
446446

447-
condition[filed] = value;
447+
condition[field] = value;
448448

449449
// add ignore condition
450450
if (args[2]) {

0 commit comments

Comments
 (0)