liuyu 4 years ago
parent
commit
7d14f56c7f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/headteacher.js

+ 1 - 1
app/service/headteacher.js

@@ -32,7 +32,7 @@ class HeadteacherService extends CrudService {
     const user = await this.umodel.findOne({ mobile: phone });
     const res = await this.model.update({ _id: ObjectId(id) }, data);
     if (res) {
-      const _user = await this.umodel.findOne({ uid: id, thpe: '1' });
+      const _user = await this.umodel.findOne({ uid: id, type: '1' });
       if (_user) {
         _user.mobile = phone;
         _user.name = name;