From 126d1e198d11d37bc8a86aaf53930a8bddf0d707 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Mon, 13 May 2013 00:29:47 +0200 Subject: removed errorchecking in model --- models/pPost.js | 6 ------ 1 file changed, 6 deletions(-) (limited to 'models') 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); -- cgit v1.2.3