Skip to content

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

Merged
merged 10 commits into from
Aug 11, 2025
Merged

PROD:Copilot portal CRs & Bugs V3 #847

merged 10 commits into from
Aug 11, 2025

Conversation

hentrymartin
Copy link
Collaborator

@hentrymartin hentrymartin commented Aug 11, 2025

@@ -172,51 +173,79 @@ module.exports = [
return;
}

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 () => {

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({

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.

@hentrymartin hentrymartin requested a review from jmgasper August 11, 2025 16:08
@jmgasper jmgasper merged commit 2a6ad37 into master Aug 11, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants