mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
chore: Remove temporary code
This commit is contained in:
@@ -587,17 +587,6 @@ schema.statics.processQuestProgress = async function processQuestProgress (user,
|
||||
|
||||
if (!_isOnQuest(user, progress, group)) return;
|
||||
|
||||
// TEMPORARY, remove once collection migration completes
|
||||
if (typeof progress.collect === 'object') {
|
||||
let totalItemsFound = _.reduce(progress.collect, (total, amount) => {
|
||||
return total + amount;
|
||||
}, 0);
|
||||
|
||||
progress.collect = totalItemsFound;
|
||||
} else if (!progress.collect) {
|
||||
progress.collect = 0;
|
||||
}
|
||||
|
||||
let quest = shared.content.quests[group.quest.key];
|
||||
|
||||
if (!quest) return; // TODO should this throw an error instead?
|
||||
|
||||
Reference in New Issue
Block a user