mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
temp fix to #1388
This commit is contained in:
@@ -232,9 +232,11 @@ var UserSchema = new Schema({
|
||||
UserSchema.post('init', function(doc) {
|
||||
/* Fix corrupt values, FIXME we can remove this after off Derby*/
|
||||
|
||||
if (doc.items && doc.items.eggs) {
|
||||
doc.items.eggs = _.filter(doc.items.eggs,function(egg){
|
||||
return !_.isString(egg);
|
||||
})
|
||||
}
|
||||
|
||||
_.each(doc.tasks, function(task, k) {
|
||||
if ((task != null ? task.id : void 0) == null) {
|
||||
|
||||
Reference in New Issue
Block a user