mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
challenges: sync score to challenge, lotsa bug fixes
This commit is contained in:
@@ -28,8 +28,8 @@ var TaskSchema = new Schema({
|
||||
streak: {type: Number, 'default': 0},
|
||||
challenge: {
|
||||
id: {type: 'String', ref:'Challenge'},
|
||||
broken: {type: Boolean, 'default': false}
|
||||
// group: {type: 'Strign', redf: 'Group'} // if we restore this, rename `id` above to `challenge`
|
||||
broken: String // CHALLENGE_DELETED, TASK_DELETED, UNSUBSCRIBED, etc
|
||||
// group: {type: 'Strign', ref: 'Group'} // if we restore this, rename `id` above to `challenge`
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user