diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-13 00:29:47 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-13 00:29:47 +0200 |
commit | 126d1e198d11d37bc8a86aaf53930a8bddf0d707 (patch) | |
tree | 6af98a7538e137986cd7101fb8d3ba3062121ff4 /models/pPost.js | |
parent | added a method to check user access. might not be used.. :( (diff) | |
download | Divid-126d1e198d11d37bc8a86aaf53930a8bddf0d707.tar.gz |
removed errorchecking in model
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); |