Skip to content

Commit

Permalink
fix update school
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed Abaker authored and Mohamed Abaker committed Jan 20, 2024
1 parent 51fc1d7 commit 363368c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/services/student.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ const updateStudentInfo = async (
).exec();
return student;
} catch (error) {
console.log(error);
throw error;
const result = await Student.findById(id);
return result;
}
};

Expand Down

0 comments on commit 363368c

Please sign in to comment.