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

@@ -50,7 +50,7 @@ export default function releaseBoth (user, req = {}) {
user.items.currentPet = '';
}
Object.keys(content.pets).forEach(animal => {
for (const animal of Object.keys(content.pets)) {
if (user.items.pets[animal] === -1) {
giveTriadBingo = false;
} else if (!user.items.pets[animal]) {
@@ -62,7 +62,7 @@ export default function releaseBoth (user, req = {}) {
user.items.pets[animal] = 0;
user.items.mounts[animal] = null;
});
}
if (user.markModified) {
user.markModified('items.pets');