summaryrefslogtreecommitdiff
path: root/server/lib/schemas/Blueprint.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-08-20 22:42:38 -0400
committerJules Laplace <jules@okfoc.us>2015-08-20 22:42:38 -0400
commit4ead3876f33036a94c0e5f7671df3f1f6d148400 (patch)
treef1cde0238cd4da50e112b9f1004fb6a91976dccb /server/lib/schemas/Blueprint.js
parent618ccc76b96fa5d070484ce2d0ec8d509153da69 (diff)
fix blueprint validation
Diffstat (limited to 'server/lib/schemas/Blueprint.js')
-rw-r--r--server/lib/schemas/Blueprint.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/schemas/Blueprint.js b/server/lib/schemas/Blueprint.js
index 666f0cf..76d0a09 100644
--- a/server/lib/schemas/Blueprint.js
+++ b/server/lib/schemas/Blueprint.js
@@ -35,10 +35,10 @@ var BlueprintSchema = new mongoose.Schema({
},
slug: {
type: String,
- required: true,
+// required: true,
validate: [function (val){
val = util.sanitize(val || this.displayName || "")
- if (! val.length) return false
+// if (! val.length) return false
return true
},"{PATH} name is required"]
},