mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
fix(stable): default to empty string for current animals
This commit is contained in:
@@ -381,7 +381,7 @@ export const UserSchema = new Schema({
|
|||||||
$type: Schema.Types.Mixed,
|
$type: Schema.Types.Mixed,
|
||||||
default: () => ({}),
|
default: () => ({}),
|
||||||
},
|
},
|
||||||
currentPet: String, // Cactus-Desert
|
currentPet: { $type: String, default: '' }, // Cactus-Desert
|
||||||
|
|
||||||
// eggs: {
|
// eggs: {
|
||||||
// 'PandaCub': 0, // 0 indicates "doesn't own"
|
// 'PandaCub': 0, // 0 indicates "doesn't own"
|
||||||
@@ -419,7 +419,7 @@ export const UserSchema = new Schema({
|
|||||||
$type: Schema.Types.Mixed,
|
$type: Schema.Types.Mixed,
|
||||||
default: () => ({}),
|
default: () => ({}),
|
||||||
},
|
},
|
||||||
currentMount: String,
|
currentMount: { $type: String, default: '' }, // Cactus-Desert
|
||||||
|
|
||||||
// Quests: {
|
// Quests: {
|
||||||
// 'boss_0': 0, // 0 indicates "doesn't own"
|
// 'boss_0': 0, // 0 indicates "doesn't own"
|
||||||
|
|||||||
Reference in New Issue
Block a user