update the courseware.json to treat challengeSeed as an array, and update schema and write logic to strinify this array

This commit is contained in:
Michael Q Larson
2015-02-06 12:11:22 -08:00
parent 1c3bb66848
commit 57db67aa82
3 changed files with 479 additions and 105 deletions

View File

@@ -14,7 +14,8 @@ var coursewareSchema = new mongoose.Schema({
difficulty: String,
description: Array,
tests: Array,
challengeSeed: String
challengeSeed: Array,
challengeType: Number // 0 = html, 1 = javascript only, 2 = video
});
module.exports = mongoose.model('Courseware', coursewareSchema);