|
@@ -92,7 +92,7 @@ class UploadquestionService extends CrudService {
|
|
|
for (const _res of res) {
|
|
|
const elm = _.cloneDeep(JSON.parse(JSON.stringify(_res)));
|
|
|
const stu = await this.smodel.findById(elm.studentid);
|
|
|
- elm.studentname = stu.name;
|
|
|
+ if (stu) { elm.studentname = stu.name; }
|
|
|
data.push(elm);
|
|
|
}
|
|
|
return { data, total };
|