|
@@ -55,7 +55,7 @@ class StudentService extends CrudService {
|
|
|
const student = await this.model.findByIdAndUpdate(id, data);
|
|
|
if (student) {
|
|
|
const { phone, name } = data;
|
|
|
- const r = await this.umodel.findOneAndUpdate({ uid: id }, { mobile: phone, name });
|
|
|
+ await this.umodel.findOneAndUpdate({ uid: id }, { mobile: phone, name });
|
|
|
}
|
|
|
return student;
|
|
|
}
|