-
Notifications
You must be signed in to change notification settings - Fork 7
name change to recrutiment25 #147
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
base: staging
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Pull Request Overview
This PR updates the recruitment model name from "Recruitment24" to "Recruitment25", likely reflecting a year-based naming convention for recruitment cycles.
- Updated the mongoose model name from "Recruitment24" to "Recruitment25"
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| }); | ||
|
|
||
| const ParticipantUser = mongoose.models.Recruitment24 || mongoose.model("Recruitment24", participantSchema); | ||
| const ParticipantUser = mongoose.models.Recruitment25 || mongoose.model("Recruitment25", participantSchema); |
Copilot
AI
Aug 22, 2025
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 model name 'Recruitment25' contains a typo. It should be 'Recruitment25' instead of 'recrutiment25' to match the PR title, or the PR title should be corrected to match the code.
| }); | ||
|
|
||
| const ParticipantUser = mongoose.models.Recruitment24 || mongoose.model("Recruitment24", participantSchema); | ||
| const ParticipantUser = mongoose.models.Recruitment25 || mongoose.model("Recruitment25", participantSchema); |
Copilot
AI
Aug 22, 2025
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.
Changing the model name from 'Recruitment24' to 'Recruitment25' will create a new collection in the database. This is a breaking change that could result in data loss if existing 'Recruitment24' data needs to be migrated. Consider implementing a data migration strategy or ensuring this change is intentional.
| const ParticipantUser = mongoose.models.Recruitment25 || mongoose.model("Recruitment25", participantSchema); | |
| const ParticipantUser = mongoose.models.Recruitment24 || mongoose.model("Recruitment24", participantSchema); |
name change to recrutiment25