|
@@ -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;
|