mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
restore for...of
This commit is contained in:
@@ -24,12 +24,12 @@ export default function releasePets (user, req = {}, analytics) {
|
||||
user.items.currentPet = '';
|
||||
}
|
||||
|
||||
Object.keys(content.pets).forEach(pet => {
|
||||
for (const pet of Object.keys(content.pets)) {
|
||||
if (!user.items.pets[pet]) {
|
||||
giveBeastMasterAchievement = false;
|
||||
}
|
||||
user.items.pets[pet] = 0;
|
||||
});
|
||||
}
|
||||
|
||||
if (user.markModified) user.markModified('items.pets');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user