CampbellSoftwareSolutions / mongoose-id-validator

Mongoose plug in to validate ObjectID references point to valid existing documents.
Other
47 stars 26 forks source link

Using Promise instead of deprecated isAsync #31

Closed kevindumanoir closed 5 years ago

kevindumanoir commented 5 years ago

This PR refactors the implementation of the async validator. It now uses Promises instead of isAsync + callback, as recommended in last mongoose versions.

This PR resolves issue https://github.com/CampbellSoftwareSolutions/mongoose-id-validator/issues/30

martin-css commented 5 years ago

Thanks for the contribution!