challenges: better syncing of new, updated, & deleted tasks from

challenge to user. start with task.challenge.broken code
This commit is contained in:
Tyler Renelle
2013-10-27 14:44:50 -07:00
parent d60a56432f
commit e52d0a156a
8 changed files with 97 additions and 36 deletions

View File

@@ -28,6 +28,5 @@ ChallengeSchema.virtual('tasks').get(function () {
return tasks;
});
module.exports.schema = ChallengeSchema;
module.exports.model = mongoose.model("Challenge", ChallengeSchema);