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 releaseMounts (user, req = {}, analytics) {
user.items.currentMount = '';
}
Object.keys(content.pets).forEach(mount => {
for (const mount of Object.keys(content.pets)) {
if (user.items.mounts[mount] === null || user.items.mounts[mount] === undefined) {
giveMountMasterAchievement = false;
}
user.items.mounts[mount] = null;
});
}
if (user.markModified) user.markModified('items.mounts');