-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use twentyORM in Timeline messaging #6595
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
Refactored timeline messaging to use twentyORM
instead of raw queries, enhancing maintainability and modularity.
timeline-thread-participant.dto.ts
: MadepersonId
andworkspaceMemberId
nullable to align with GraphQL schema.get-messages-from-company-id.service.ts
: Introduced service to fetch messages by company ID usingtwentyORM
.get-messages-from-person-ids.service.ts
: Added service to retrieve messages by person IDs, leveragingtwentyORM
.timeline-messaging.service.ts
: Refactored to usetwentyORM
for fetching message threads and visibility.timeline-messaging.module.ts
: Updated to include new services for handling messages from company and person IDs.
11 file(s) reviewed, 9 comment(s)
Edit PR Review Bot Settings
...ty-server/src/engine/core-modules/messaging/services/get-messages-from-company-id.service.ts
Outdated
Show resolved
Hide resolved
): Promise<{ | ||
[key: string]: MessageChannelVisibility; | ||
}> { | ||
const messageThreadIdsForWhichWorkspaceMemberIsNotInParticipants = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Consider optimizing the reduce function for better performance.
twentyORM