chore: Add quest collection migration and temporary code to catch data inconsistencies

This commit is contained in:
Blade Barringer
2016-06-03 09:01:48 -05:00
parent 58cd634255
commit b3b437e593
4 changed files with 164 additions and 1 deletions

View File

@@ -376,7 +376,8 @@ export let schema = new Schema({
progress: {
up: {type: Number, default: 0},
down: {type: Number, default: 0},
collect: {type: Number, default: 0},
// TEMPORARY - Switch type to Number after migration
collect: {type: Schema.Types.Mixed, default: 0},
},
completed: String, // When quest is done, we move it from key => completed, and it's a one-time flag (for modal) that they unset by clicking "ok" in browser
RSVPNeeded: {type: Boolean, default: false}, // Set to true when invite is pending, set to false when quest invite is accepted or rejected, quest starts, or quest is cancelled