restore for...of

This commit is contained in:
Matteo Pagliazzi
2019-10-09 20:19:31 +02:00
parent e0e9811ab6
commit 415f28995d
5 changed files with 12 additions and 12 deletions

View File

@@ -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');