diff options
Diffstat (limited to 'models/pPost.js')
-rw-r--r-- | models/pPost.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/models/pPost.js b/models/pPost.js index 1ce50b2..6314757 100644 --- a/models/pPost.js +++ b/models/pPost.js @@ -22,11 +22,6 @@ var pPostSchema = new Schema({ }); -pPostSchema.path('what').validate(function(name) { - return what.length; -}, 'You need to name the expense'); - - pPostSchema.statics = { @@ -45,7 +40,6 @@ pPostSchema.statics = { .exec(callback); } - } mongoose.model('pPost', pPostSchema); |