lrf 2 năm trước cách đây
mục cha
commit
3d29a597b1
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      app/service/group/group.js

+ 2 - 1
app/service/group/group.js

@@ -105,8 +105,9 @@ class GroupService extends CrudService {
     for (const i of data) {
       const { persons = [] } = i;
       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.icon = _.get(user, 'icon');
       }
     }