Commit Graph
100 Commits
Author SHA1 Message Date
tuankiet2s 561823225d feat: integrate LiveKit services into Collaboration and Meeting Room modules
- Added LiveKitModule to CollaborationSession and MeetingRoom modules for enhanced real-time collaboration features.
- Updated CollaborationSessionSchema to include LiveKit services for managing participant access and room permissions.
- Implemented a new cron job in CronService to disable services without schedules for over 30 days, improving service management.
- Enhanced GraphQL schema generation with improved filtering logic for better performance and readability.
- Refactored LiveKit services to streamline access token creation and room management functionalities.
2024-12-01 19:18:20 +07:00
tuankiet2s 111acacf2d refactor: simplify schedule filtering logic in ScheduleSchema
- Replace complex where clause with a direct reference to args.filter for schedule retrieval.
- This change enhances code readability and maintainability by streamlining the filtering process.
2024-12-01 14:29:39 +07:00
tuankiet2s 37330e7ab1 fix collaboration session 2024-11-30 23:45:51 +07:00
tuankiet2s f99ad899c0 refactor: enhance user validation in CollaborationSessionSchema
- Update user participation check to allow access for a specific user ID while maintaining restrictions for others.
- This change aims to refine access control within collaboration sessions, ensuring that only authorized users can participate while allowing for specific exceptions.
2024-11-30 23:44:46 +07:00
tuankiet2s 05a8ebcebf refactor: comment out user validation in CollaborationSessionSchema and error handling in DateTimeUtils
- Temporarily disable the check for user participation in collaboration sessions to allow for further review of session management logic.
- Comment out the error handling for invalid date times in DateTimeUtils, simplifying the date conversion process for now.
- These changes aim to enhance code maintainability while preserving existing functionality.
2024-11-30 23:28:17 +07:00
tuankiet2s bb56b7b61c refactor: comment out collaborator ID update logic in CollaborationSessionSchema
- Temporarily disable the logic that adds the current user's ID to the collaboratorsIds array if not already included.
- This change is aimed at revisiting the collaboration session management without altering the existing functionality for customer role access.
2024-11-30 23:12:34 +07:00
tuankiet2s 2c38110183 refactor: enhance schedule retrieval logic in ScheduleSchema
- Update schedule retrieval to restrict access to authorized centers based on center ownership and mentorship.
- Implement checks to ensure that schedules are only fetched for approved centers.
- Improve error handling for user and center validation during schedule queries, preventing access in subscription contexts.
2024-11-30 21:02:03 +07:00
tuankiet2s c26bf36084 refactor: enhance schedule and document handling in schemas
- Simplify schedule expiration logic in CronService by removing unnecessary date checks.
- Improve error handling in DocumentSchema for document page retrieval, ensuring graceful failure.
- Add validation in ScheduleSchema to restrict schedule retrieval to authorized centers and prevent subscription-based access.
- Implement checks to reject schedules with start dates in the past or today, enhancing data integrity.
2024-11-30 20:35:34 +07:00
tuankiet2s 7729d3ce63 refactor: improve code readability and logging in GraphQL builder
- Reformat plugin array for better readability in the Builder class constructor.
- Enhance unused query handling by adding logging for unused queries in development.
- Update TypeScript error comment for clarity in GraphqlModule, specifying that the request is not typed.
2024-11-30 17:00:34 +07:00
tuankiet2s af81874793 chore: update @nestjs-modules/mailer and @css-inline dependencies
- Upgrade @nestjs-modules/mailer from version 1.6.1 to 2.0.2 for improved functionality.
- Update @css-inline/css-inline and related packages to version 0.14.1, enhancing compatibility and features across various platforms.
- Refactor package.json and package-lock.json for consistency in dependency management.
2024-11-30 16:51:52 +07:00
tuankiet2s c432b71735 feat: add logging and notification creation in NotificationService
- Implement logging for notification sending process.
- Create a new message entry in the database when a notification is sent, specifying recipient, content, type, and context. This enhances the notification handling capabilities of the service.
2024-11-30 16:49:35 +07:00
tuankiet2s 1e9d3cfbb4 fix: check schedule date start 2024-11-30 16:41:59 +07:00
tuankiet2s a619c95efc Update dependencies in package.json and package-lock.json, refactor CronService to include notification handling for schedule expirations, and enhance DocumentSchema with OpenAI integration for document editing suggestions. Additionally, modify GraphqlModule to include PubSubModule for real-time notifications and improve datetime utility functions for better date formatting. Update epess-database subproject reference to indicate a dirty state. 2024-11-30 16:41:47 +07:00
tuankiet2s 7cff5069de Update RefundTicket schema to rename 'reason' field to 'rejectedReason' for clarity in status updates. Update subproject reference in epess-database. Enhance generated types in pothos.generated.ts for improved schema management. 2024-11-29 13:56:57 +07:00
tuankiet2s abb7e38df3 Enhance DocumentSchema and MinioService to support document folder creation. Update document creation logic to include folder setup in Minio after document creation. Refactor createDocumentFolder method to initialize a default page in the document folder. This improves document management and organization within the Minio storage system. 2024-11-28 20:09:37 +07:00
tuankiet2s e546c348cc Enhance CollaborationSessionSchema by adding collaboratorsIds field to expose a list of collaborator IDs. This update improves the schema's clarity and functionality for collaboration management. 2024-11-28 19:47:13 +07:00
tuankiet2s f2edc9fa8d Refactor ResumeSchema to streamline file upload and resume management logic. Consolidate description formatting for resume and resume file retrieval fields. Enhance error handling during file upload and resume creation, ensuring robust handling of existing resumes. This update improves code clarity and maintains functionality for resume file management. 2024-11-28 19:44:40 +07:00
tuankiet2s ed7ec9a368 Merge branch 'main' of https://github.com/EPESS/epess-web-backend 2024-11-28 19:21:09 +07:00
tuankiet2s 7911d7f0bd Refactor CronService to utilize DateTimeUtils for date handling. Update schedule and payment checks to use current time instead of new Date(), enhancing accuracy in scheduling logic. This change improves the reliability of cron job operations by ensuring consistent date management. 2024-11-28 19:21:06 +07:00
tuankiet2s a6788345ce Refactor DocumentSchema to remove fileUrl retrieval logic and set default value for fileUrl. This change simplifies the document creation process by eliminating unnecessary error handling related to file retrieval, while maintaining user ownership assignment. 2024-11-27 08:56:29 +07:00
tuankiet2s 0bfdd3812d Enhance DocumentSchema and MinioService for improved error handling and functionality. Update page index validation to check for undefined or null values. Introduce total page count retrieval in DocumentSchema and adjust senderId handling. Refactor MinioService to correctly read and parse document pages, ensuring robust object management. This update improves clarity and reliability in document synchronization processes. 2024-11-27 07:50:51 +07:00
tuankiet2s 8fba48ed0f Update order schema to limit payment description length to 10 words for improved clarity and consistency in payment processing. 2024-11-27 06:52:53 +07:00
tuankiet2s 77f44a891f Refactor CollaborationSession and Document schemas to improve code clarity and functionality. Enhance error handling in collaboration session retrieval and update logic. Introduce new request sync events in Document schema and update Minio service for document page management. Adjust cron job to use current date for future schedule date checks. Update user schema for better error handling and improve service descriptions in order schema. Remove global decorators from Workshop modules for better module encapsulation. 2024-11-27 06:48:49 +07:00
tuankiet2s 51bafcfe29 Change cron job frequency to check payment status every minute instead of every 10 minutes for improved responsiveness. 2024-11-27 02:33:54 +07:00
tuankiet2s 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
tuankiet2s 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
tuankiet2s ddaab3eb0a Update CENTER_BASE_URL in compose.yaml to use production URL and comment out local development URL 2024-11-27 01:21:30 +07:00
tuankiet2s 0fc95eab73 Update epess-database subproject commit reference to 6b4dece, reflecting recent changes in the database structure. 2024-11-27 01:09:41 +07:00
tuankiet2s 2581ca396f Refactor Category and Center schemas to improve field descriptions and code clarity; update email templates for consistency in messaging. Add Redis service to CenterSchema for session management. Bump epess-database subproject commit reference to indicate changes. Clean up logging in ClerkService and ServiceSchema. 2024-11-27 01:09:13 +07:00
tuankiet2s c9435a6e04 Enhance ServiceSchema by adding commission and descriptions for approve and adminNote arguments. Implement default commission logic when service is approved without a specified commission. 2024-11-27 00:41:54 +07:00
tuankiet2s 01aede0b09 Update RefundTicketSchema to include additional fields for bank details and refund reasons; modify refund logic to enhance validation and error handling. Update TypeScript configuration to resolve JSON modules and bump subproject commit reference in epess-database. 2024-11-26 23:55:39 +07:00
tuankiet2s c9f03f251d update commission validate 2024-11-26 21:30:26 +07:00
tuankiet2s 346f287699 bump db 2024-11-26 21:06:55 +07:00
tuankiet2s 12b1e8e764 update refund ticket 2024-11-26 21:02:14 +07:00
tuankiet2s e63f900cf4 expose workshop metric 2024-11-26 18:07:03 +07:00
tuankiet2s 1062f5944d update sth :) 2024-11-26 17:55:34 +07:00
tuankiet2s 8b01df2111 update db def 2024-11-26 17:31:53 +07:00
tuankiet2s 3ac8c3fd39 implement cron mechanic for refund strageries and make workshop reliable 2024-11-26 17:31:40 +07:00
tuankiet2s 830c9ce3f6 Update WorkshopSchema to include duration field; modify epess-database subproject commit reference. Enhance type definitions in pothos.generated.ts for improved schema consistency. 2024-11-26 17:13:02 +07:00
tuankiet2s 90da34604a change on database 2024-11-26 17:09:54 +07:00
tuankiet2s 537b6fd359 Refactor ClerkService and OrderSchema for improved type safety; update RefundTicketSchema to include new refund request and processing mutations. Clean up import statements and enhance descriptions for better clarity. Update subproject commit reference in epess-database. 2024-11-26 17:08:38 +07:00
tuankiet2s 01c92b2303 Update package.json to include SWC dependencies and refactor Jest configuration; remove unused DevtoolsModule import from app.module.ts for cleaner code. 2024-11-26 04:33:23 +07:00
tuankiet2s a1ca5c62fb Enhance NestJS application with SWC builder configuration, add @nestjs/devtools-integration for development support, and refactor various components for improved readability. Update package dependencies and streamline import statements across multiple files. 2024-11-26 04:26:55 +07:00
tuankiet2s c4e302387f Update VSCode settings for line width and refactor imports in workshop.schema.ts; enhance workshop creation resolver with authentication checks 2024-11-26 00:56:01 +07:00
tuankiet2s dc2397d73e Refactor WorkshopSchema: remove imageFileUrl field and update resolver parameters for consistency 2024-11-26 00:42:51 +07:00
tuankiet2s 0879630195 Update subproject commit reference in epess-database 2024-11-26 00:41:32 +07:00
tuankiet2s 950e553784 Update subproject commit and enhance VSCode settings; refactor imports and formatting in center.schema.ts; add docwriter style to settings.json 2024-11-26 00:41:17 +07:00
tuankiet2s 2b70b018f9 enhance subcribe to workshop 2024-11-25 23:06:01 +07:00
tuankiet2s 547947eeb8 update subscribe to workshop 2024-11-25 22:52:53 +07:00
tuankiet2s 26dd46c7a0 update code ngu 2024-11-25 22:06:47 +07:00
tuankiet2s 84a09375da bling bling 2024-11-25 19:46:23 +07:00
tuankiet2s c063f1a10e implement payment cron job 2024-11-25 18:21:54 +07:00
tuankiet2s 667dc9e09d implement some cron task 2024-11-25 18:16:50 +07:00
tuankiet2s dae2b0849f update something 2024-11-25 17:36:15 +07:00
tuankiet2s d1ba07434a chuc mung ban da duoc ban 2024-11-25 16:45:51 +07:00
tuankiet2s 8abf867fbb ba me thang khoi 2024-11-25 16:16:49 +07:00
tuankiet2s 6d509a4487 update scheduleDate props 2024-11-25 15:02:56 +07:00
tuankiet2s 0f7bb3367e kiet pha banh r 2024-11-25 14:18:20 +07:00
tuankiet2s 28d0374435 database bi kiet pha banh roi 2024-11-25 14:17:32 +07:00
tuankiet2s 9515a3d9b3 so can tell me sth? 2024-11-25 12:18:33 +07:00
tuankiet2s 68dabd186a update some complex logic 2024-11-24 22:25:14 +07:00
tuankiet2s edcd340d0b update database 2024-11-24 15:12:39 +07:00
tuankiet2s 675460c39c update api 2024-11-24 15:12:05 +07:00
tuankiet2s ccfe7bf1f1 update gi cung duoc 2024-11-22 16:04:53 +07:00
tuankiet2s d8a3894aba update manyyyyyyyyy 2024-11-22 15:06:49 +07:00
tuankiet2s 8eec1bed55 update commission 2024-11-21 22:05:22 +07:00
tuankiet2s 8c5d81d0aa Merge branch 'main' of https://github.com/EPESS/epess-web-backend 2024-11-21 18:30:36 +07:00
tuankiet2s d56e1f9348 update transaction 2024-11-21 18:30:32 +07:00
tuankiet2s 208ae897ef database bi khoi pha banh chanh 2024-11-18 15:34:57 +07:00
tuankiet2s 88941394eb super bug 2024-11-18 15:34:32 +07:00
tuankiet2s 3430971449 toi bi ngu 2024-11-17 20:27:33 +07:00
tuankiet2s bb0eed1851 complete delta?? 2024-11-15 20:30:24 +07:00
tuankiet2s 270d185f18 backend cung da bi lac 2024-11-15 20:09:07 +07:00
tuankiet2s f2db004aaf loi tai ngu 2024-11-15 18:19:08 +07:00
tuankiet2s 7e4a4283e6 toi cam thay minh la sieu nhan 2024-11-15 18:18:37 +07:00
tuankiet2s ff45e69efd push code chua nhi? 2024-11-11 22:04:39 +07:00
tuankiet2s 22bc231409 fix mutation 2024-11-11 18:59:12 +07:00
tuankiet2s e0a8b0aaa0 update service and category 2024-11-11 18:55:24 +07:00
tuankiet2s 95a092cec9 😒 2024-11-09 18:44:35 +07:00
tuankiet2s 2736547b84 fix wrong logic uploaded file 2024-11-09 15:49:06 +07:00
tuankiet2s 797018ed74 update test webhook 2024-11-08 17:35:40 +07:00
tuankiet2s 48178cba16 update API PAYOS 2024-11-08 17:29:30 +07:00
tuankiet2s d7c7f8a782 update something can update 2024-11-08 17:27:09 +07:00
tuankiet2s 7eabba1868 Merge branch 'main' of https://github.com/EPESS/epess-web-backend 2024-11-08 15:16:02 +07:00
tuankiet2s 1897ccf677 thang an pha qua 2024-11-08 15:15:59 +07:00
tuankiet2s 57037a59ec update websocket 2024-11-06 17:16:10 +07:00
tuankiet2s ef5c753ce4 update api key 2024-11-05 16:15:35 +07:00
tuankiet2s 4cc931c9f8 Khoi de doa se danh toi neu toi khong day len production 2024-11-05 15:03:34 +07:00
tuankiet2s 56ba2808c8 day len server theo loi Khoi noi, toi xin tuyen bo mien tru trach nhiem 2024-11-05 15:02:53 +07:00
tuankiet2s 0f68b51d75 finish payment strategies 2024-11-03 22:09:59 +07:00
tuankiet2s 6b7430c5cf expose payment code 2024-11-03 20:30:58 +07:00
tuankiet2s bc2eda7490 update payment 2024-11-03 20:28:14 +07:00
tuankiet2s e8c0e0d312 fix invalidate sessionid 2024-11-03 18:08:04 +07:00
tuankiet2s 3cd3fffc22 properly return graphql context 2024-11-02 16:49:17 +07:00
tuankiet2s 1a5577f8e6 fix some bug and produce many problem to solve later 2024-11-02 16:27:28 +07:00
tuankiet2s e86d979ddb implement preview for center 2024-11-01 21:10:54 +07:00
tuankiet2s db9f3213fd lennnn 2024-11-01 20:02:43 +07:00
tuankiet2s ec77f07de1 fix time geneate logic and replace default datetime by luxon 2024-11-01 17:27:25 +07:00
tuankiet2s 24a49d9412 fix approve resume 2024-10-31 19:17:59 +07:00
tuankiet2s 33190ecfa4 update approve or reject resume 2024-10-31 16:24:39 +07:00