...
This commit is contained in:
parent
a6f260a6e6
commit
d0090f5709
@ -65,10 +65,7 @@ class UserDao {
|
||||
|
||||
const users = results.map((user) => {
|
||||
this.getUserInfo(user.account_id);
|
||||
return {
|
||||
uid: user.account_id,
|
||||
name: user.name.toString(),
|
||||
};
|
||||
return user.account_id;
|
||||
});
|
||||
|
||||
return { users: users, last_idx: results[results.length - 1].idx };
|
||||
|
@ -60,7 +60,9 @@ class FriendService {
|
||||
}
|
||||
|
||||
async findUser(name, last_idx, limit, uid) {
|
||||
return await userDao.findUser(name, last_idx, limit, uid);
|
||||
const result = await userDao.findUser(name, last_idx, limit, uid);
|
||||
result.users = await this.uidsToUsers(uid, result.users);
|
||||
return result;
|
||||
}
|
||||
|
||||
async uidsToUsers(uid, uids) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user