-
Notifications
You must be signed in to change notification settings - Fork 55
PROD:Copilot portal CRs & Bugs V3 #847
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
feat(PM-1610): Directly add copilot to project
feat(PM-1613): Send notification to copilot who are accepted
| @@ -172,51 +173,79 @@ module.exports = [ | |||
| return; | |||
| } | |||
|
|
|||
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 removal of the check for existing pending invites may lead to duplicate invites being created for the same user. Consider re-implementing this check to prevent potential issues.
| }, { | ||
| transaction: t, | ||
| }); | ||
|
|
||
| const sendEmailToCopilot = async () => { |
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 function sendEmailToCopilot is defined but not used elsewhere in the code. Ensure that this function is necessary and invoked correctly, or remove it if it is not needed.
| await sendEmailToCopilot(); | ||
|
|
||
| // Cancel other applications | ||
| const otherApplications = await models.CopilotApplication.findAll({ |
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 logic for canceling other applications assumes that applicationId is defined and valid. Ensure that applicationId is correctly initialized and available at this point in the code to avoid runtime errors.
https://topcoder.atlassian.net/browse/PM-1270
https://topcoder.atlassian.net/browse/PM-1584
https://topcoder.atlassian.net/browse/PM-1610
https://topcoder.atlassian.net/browse/PM-1613