wip
This commit is contained in:
parent
070cd52c21
commit
1a13c7e0b1
8 changed files with 11 additions and 10 deletions
|
|
@ -19,7 +19,7 @@ export default class ID extends Query<mongo.ObjectID> {
|
|||
}
|
||||
};
|
||||
|
||||
this.pushFirstTimeValidator(v => {
|
||||
this.pushValidator(v => {
|
||||
if (!mongo.ObjectID.prototype.isPrototypeOf(v) && isNotAnId(v)) {
|
||||
return new Error('must-be-an-id');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue