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
2024-11-26 17:55:34 +07:00
2024-12-03 18:19:08 +07:00
2024-11-27 01:09:13 +07:00
2024-11-27 01:09:13 +07:00
2024-12-03 19:53:59 +07:00
2024-11-22 16:04:53 +07:00
2024-12-03 19:35:58 +07:00
2024-12-03 17:37:47 +07:00
2024-11-30 23:28:17 +07:00
2024-12-01 19:18:20 +07:00
2024-12-03 17:37:47 +07:00
2024-12-01 19:18:20 +07:00
2024-10-27 20:24:06 +07:00
2024-12-03 17:42:18 +07:00
2024-11-27 01:09:13 +07:00
2024-10-29 19:06:01 +07:00
2024-12-03 17:37:47 +07:00
2024-11-22 15:06:49 +07:00
2024-10-29 19:06:01 +07:00
2024-11-30 16:41:47 +07:00
2024-11-30 16:49:35 +07:00
2024-11-30 16:41:47 +07:00
2024-11-27 06:52:53 +07:00
2024-11-03 20:30:58 +07:00
2024-11-25 14:17:32 +07:00
2024-11-08 17:27:09 +07:00
2024-11-30 16:41:47 +07:00
2024-10-29 17:42:54 +07:00
2024-11-29 13:56:57 +07:00
2024-10-29 17:42:54 +07:00
2024-11-28 19:44:40 +07:00
2024-12-01 14:29:39 +07:00
2024-11-27 01:09:13 +07:00
2024-11-11 18:59:12 +07:00
2024-10-29 17:42:54 +07:00
2024-11-29 13:56:57 +07:00
2024-11-09 15:49:06 +07:00
2024-11-30 16:41:47 +07:00
2024-11-27 06:48:49 +07:00
2024-11-27 06:48:49 +07:00
2024-10-29 17:42:54 +07:00
2024-11-25 23:06:01 +07:00
2024-12-02 17:29:07 +07:00
2024-11-26 04:26:55 +07:00