more migration fixes, fix up metrics.js

This commit is contained in:
Tyler Renelle
2013-10-30 18:58:09 -07:00
parent 4764bf738c
commit a90f37f35c
4 changed files with 62 additions and 24 deletions

View File

@@ -81,21 +81,11 @@ var UserSchema = new Schema({
rest: {type: Boolean, 'default': false} // fixme - change to preferences.resting once we're off derby
},
history: {
exp: [
{
date: Date,
value: Number
}
],
todos: [
{
data: Date,
value: Number
}
]
exp: [{date: Date, value: Number}],
todos: [{data: Date, value: Number}]
},
/* FIXME remove?*/
/* FIXME remove?*/
invitations: {
guilds: {type: Array, 'default': []},
party: Schema.Types.Mixed
@@ -153,14 +143,13 @@ var UserSchema = new Schema({
pets: Array
},
// FIXME store as Date?
lastCron: {
type: Date,
'default': Date.now
},
// FIXME remove?
// FIXME remove?
party: {
//party._id // FIXME make these populate docs?
current: String, // party._id