writes completed challenges to database

This commit is contained in:
Michael Q Larson
2014-11-25 11:17:07 -08:00
parent 1a0acdea82
commit d973619f4a
4 changed files with 27 additions and 7 deletions

View File

@ -14,7 +14,7 @@ var userSchema = new mongoose.Schema({
instagram: String,
tokens: Array,
challengesCompleted: { type: Array, default: [] },
challengesHash: { type: {}, default: { '-1': 'void'} },
challengesHash: {},
profile: {
name: { type: String, default: '' },