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
unclebonn
19a19b00c4
relation Schedules to Order
2024-11-28 15:27:41 +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