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:
@@ -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);
|
Reference in New Issue
Block a user