mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
fix: Change quest collection to calculate items on the server only
This commit is contained in:
@@ -376,9 +376,7 @@ export let schema = new Schema({
|
||||
progress: {
|
||||
up: {type: Number, default: 0},
|
||||
down: {type: Number, default: 0},
|
||||
collect: {type: Schema.Types.Mixed, default: () => {
|
||||
return {};
|
||||
}}, // {feather:1, ingot:2}
|
||||
collect: {type: Number, 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
|
||||
|
||||
Reference in New Issue
Block a user