lrf %!s(int64=2) %!d(string=hai) anos
pai
achega
3d29a597b1
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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');
       }
     }