reloaded hace 4 años
padre
commit
d3f69cbf2c
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      app/service/notice.js

+ 3 - 0
app/service/notice.js

@@ -84,6 +84,9 @@ class NoticeService extends CrudService {
       userinfo = await this.schmodel.findById(user.uid);
     } else if (user.type === '3') {
       userinfo = await this.teamodel.findById(user.uid);
+      if (userinfo) {
+        delete userinfo.status;
+      }
     } else if (user.type === '4') {
       userinfo = await this.stumodel.findById(user.uid);
     }