形象:头像相框形象字段
This commit is contained in:
@@ -38,7 +38,7 @@ export default class FriendApply extends BaseModel {
|
||||
const list: FriendApplyType[] = await FriendApplyModel.find({ roleId }, { _id: 0 })
|
||||
// .select(select)
|
||||
.populate('friend', ROLE_SELECT.SHOW_FRIEND_APPLY_LIST, 'Role')
|
||||
.lean({ getters: true });
|
||||
.lean({ getters: true, virtuals: true });
|
||||
return list;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ export default class FriendApply extends BaseModel {
|
||||
const list: FriendApplyType[] = await FriendApplyModel.find({ applyCode: { $in: applyCodeList } }, { _id: 0 })
|
||||
// .select(select)
|
||||
.populate('friend', ROLE_SELECT.SHOW_FRIEND_APPLY_LIST, 'Role')
|
||||
.lean({ getters: true });
|
||||
.lean({ getters: true, virtuals: true });
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user