Files
epess-web-backend/src/CenterMentor
Ly Tuan Kiet 367fc09c6c feat: enhance user validation and center owner checks in CenterMentorSchema
- Updated the CenterMentorSchema to include user validation by fetching user information based on email.
- Implemented error handling to throw an error if the user is not found.
- Modified the logic to block center owners from being invited as mentors by checking against the user's ID instead of the email.
- Improved overall error messaging for better clarity when invitation conditions are not met.
2024-12-03 19:53:59 +07:00
..
2024-10-29 17:42:54 +07:00