aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-05-13 00:29:47 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-05-13 00:29:47 +0200
commit126d1e198d11d37bc8a86aaf53930a8bddf0d707 (patch)
tree6af98a7538e137986cd7101fb8d3ba3062121ff4
parentadded a method to check user access. might not be used.. :( (diff)
downloadDivid-126d1e198d11d37bc8a86aaf53930a8bddf0d707.tar.gz
removed errorchecking in model
-rw-r--r--models/pPost.js6
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);