|
@@ -105,8 +105,9 @@ class GroupService extends CrudService {
|
|
for (const i of data) {
|
|
for (const i of data) {
|
|
const { persons = [] } = i;
|
|
const { persons = [] } = i;
|
|
for (const p of persons) {
|
|
for (const p of persons) {
|
|
- const user = await this.userModel.findById(p.customer, { name: 1 });
|
|
|
|
|
|
+ const user = await this.userModel.findById(p.customer, { name: 1, icon: 1 });
|
|
p.name = _.get(user, 'name');
|
|
p.name = _.get(user, 'name');
|
|
|
|
+ p.icon = _.get(user, 'icon');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|