Skip to content

Conversation

@jmgasper
Copy link
Contributor

@jmgasper jmgasper commented Nov 5, 2025

Look for "Topgear Submission" phase in addition to "Submission" phase when calculating end date.

@jmgasper jmgasper merged commit c97be3f into develop Nov 5, 2025
4 checks passed
? new Date(submissionPhase.scheduledEndDate).toUTCString()
: null

await helper.postEvent(config.EMAIL_NOTIFICATIN_TOPIC, {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
The variable submissionEndTime is derived from submissionPhase.scheduledEndDate without validation of the date format. Consider adding a check to ensure scheduledEndDate is a valid date before converting it to a UTC string to prevent potential runtime errors.

replyTo: config.REGISTRATION_EMAIL.EMAIL_FROM,
recipients: [email],
data: {
handle,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
The submissionEndTime variable is used directly in the email data payload. Ensure that submissionEndTime is not null before sending the email, or handle the null case appropriately to avoid sending incomplete data.

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