-
Notifications
You must be signed in to change notification settings - Fork 55
[Hot Fix]Pm 1836 prod #856
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
Conversation
| ] : [ | ||
| { | ||
| model: models.CopilotRequest, | ||
| as: 'copilotRequest', |
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.
Consider specifying the attributes you need from the CopilotRequest model to avoid fetching unnecessary data and improve performance.
| const relationBasedSortParams = ['projectName']; | ||
| const jsonBasedSortParams = ['opportunityTitle', 'projectType']; | ||
| if (relationBasedSortParams.includes(sortParams[0])) { | ||
| if (relationBasedSortParams.includes(sortParams[0]) && isAdminOrManager) { |
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.
The condition now includes isAdminOrManager. Ensure that isAdminOrManager is defined and correctly scoped within this function to avoid potential reference errors.
What's in this PR?