Commit Graph

20 Commits

Author SHA1 Message Date
776881f961 chore: combine context 2024-12-20 18:30:50 +07:00
68353d8985 feat: implement AI suggestion 2024-12-12 21:22:50 +07:00
10e20092ab chore: update configuration and improve schema imports
- Updated biome.json to include "graphql.d.ts" in the ignored files list.
- Updated subproject commit reference in epess-database to the latest version.
- Removed unused script from package.json and streamlined module file extensions in tsconfig.json.
- Consolidated exclude patterns in tsconfig.build.json for clarity.
- Refactored imports across multiple schema files for consistency and improved readability.
- Enhanced various schema files by ensuring proper import order and removing redundant code.
- Improved error handling and data integrity checks in several service and schema files.
2024-12-08 20:49:52 +07:00
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
2b92f3bf5f feat: add validation to prevent center owners and mentors from being invited to their own centers
- Implemented checks in CenterMentorSchema to block center owners from being invited as mentors.
- Added validation to prevent mentors from being invited to their own centers or centers they already mentor.
- Enhanced error handling to provide clear feedback when invitation conditions are not met.
2024-12-03 16:18:26 +07:00
cdf7e7febd Update CenterMentorSchema to include 'active' field for mentor status and adjust role assignment to use Role enum. Enhance payment cancellation logic in CronService to update associated order status to 'FAILED'. Bump epess-database subproject commit reference to reflect recent changes. 2024-11-27 02:32:55 +07:00
12ec345f5b Refactor CenterMentorSchema to streamline code and improve clarity. Consolidate import statements, enhance query field descriptions, and optimize token generation logic. Integrate Redis service for session management, ensuring cache invalidation for active Clerk sessions. Update email sending logic for mentor invitations to improve readability. 2024-11-27 01:32:18 +07:00
3430971449 toi bi ngu 2024-11-17 20:27:33 +07:00
57037a59ec update websocket 2024-11-06 17:16:10 +07:00
56ba2808c8 day len server theo loi Khoi noi, toi xin tuyen bo mien tru trach nhiem 2024-11-05 15:02:53 +07:00
8631bd935d fix admin note is required in mentor 2024-10-29 19:49:22 +07:00
3b23d9e0b7 change to biome 2024-10-29 17:26:09 +07:00
9423a36eeb add context subscription 2024-10-29 02:21:18 +07:00
34cea2ccd3 implement redis cache for context 2024-10-29 00:56:23 +07:00
ae1aa64b41 push code len ne 2024-10-28 20:56:21 +07:00
5c1d4e92af enabled context and fix some api 2024-10-28 20:21:36 +07:00
f0e90ba234 add admin note to center mentor object 2024-10-28 17:11:51 +07:00
d86e7cb667 add approve or reject mentor 2024-10-28 16:47:30 +07:00
f787d0c194 9h sang tao code tiep 2024-10-28 02:56:36 +07:00
eec9fcfeff push code ne 2024-10-28 01:08:13 +07:00