liuyu %!s(int64=4) %!d(string=hai) anos
pai
achega
7d14f56c7f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;