|
@@ -24,6 +24,7 @@ class HeadteacherService extends CrudService {
|
|
const newdata = { name, mobile, type: '1', uid: res.id };
|
|
const newdata = { name, mobile, type: '1', uid: res.id };
|
|
newdata.passwd = { secret: '12345678' };
|
|
newdata.passwd = { secret: '12345678' };
|
|
await this.umodel.create(newdata);
|
|
await this.umodel.create(newdata);
|
|
|
|
+ return await this.model.findById(res.id || res._id);
|
|
}
|
|
}
|
|
|
|
|
|
async update({ id }, data) {
|
|
async update({ id }, data) {
|