Skip to content

Commit 23eccb2

Browse files
[fixed] eslint error
1 parent 574f356 commit 23eccb2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/student/stdEduHistory.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const studentEducationSchema = {
5555
},
5656
};
5757

58-
const studentEducation = connector.model("Student education", studentEducationSchema);
58+
const StudentEducation = connector.model("Student education", studentEducationSchema);
5959

6060
async function create(studentEducationData) {
6161
const {
@@ -112,7 +112,7 @@ async function create(studentEducationData) {
112112
},
113113
} = studentEducationData;
114114

115-
const stdEducation = new studentEducation({
115+
const stdEducation = new StudentEducation({
116116
uid,
117117
tenth: {
118118
marks,
@@ -172,7 +172,7 @@ async function create(studentEducationData) {
172172

173173
async function read(filter, limit = 1) {
174174
const stdEducationDoc = studentEducationSchema.find(filter).limit(limit);
175-
return stdEducationDoc
175+
return stdEducationDoc;
176176
}
177177

178178
async function update(filter, updateObject, options = { multi: true }) {

0 commit comments

Comments
 (0)