Closed kevindumanoir closed 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.
isAsync + callback
This PR resolves issue https://github.com/CampbellSoftwareSolutions/mongoose-id-validator/issues/30
Thanks for the contribution!
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