Fix errors

This commit is contained in:
Mateus Etto
2018-02-18 19:44:17 +09:00
parent 3171550de2
commit 7af71d1457
2 changed files with 9 additions and 6 deletions

View File

@@ -331,9 +331,9 @@ async function translateSystemMessages (group, user) {
}
await Bluebird.map(Object.keys(usernames), async (username) => {
let usr = await User
.findById(username)
.select(nameFields)
.exec();
.findById(username)
.select(nameFields)
.exec();
usernames[username] = usr.profile.name;
});
for (let i = 0; i < group.chat.length; i++) {