Created
January 11, 2013 04:07
-
-
Save switzer/4507891 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
orgSchema.path('timezone').validate(function(value) { | |
Timezone.findOne({_id: value}, "_id", function (err, timezone) { return false; }); | |
}, "Please provide a valid timezone"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment