Repository navigation
fixed multiple uris for no reason - #4
Open
AuroraAustralis7 wants to merge 1 commit into
Open
AuroraAustralis7 wants to merge 1 commit into
AuroraAustralis7 wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR appears to consolidate MongoDB connection configuration to a single MONGODB_URI environment variable and applies minor formatting/cleanup changes across the server routes/middleware and the client lockfile.
Changes:
- Switch model connection strings in
staff/paper(and intended inarticle) to useprocess.env.MONGODB_URI. - Apply small style/formatting fixes in Express routers/middleware (whitespace, chaining layout, semicolon).
- Update
client/package-lock.jsonby removing some optional@emnapi/*entries.
Reviewed changes
Copilot reviewed 6 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| server/src/routes/pdfRouter.js | Minor whitespace cleanup near export. |
| server/src/routes/articleRouter.js | Reformats Mongoose query chaining and removes stray blank line. |
| server/src/routes/api.js | Adds missing semicolon on router.use("/article", ...). |
| server/src/models/staff.js | Switches DB connection env var to MONGODB_URI. |
| server/src/models/paper.js | Switches DB connection env var to MONGODB_URI. |
| server/src/models/article.js | Attempts to switch env var, but currently leaves a broken reference (see comment). |
| server/src/middlewares.js | Normalizes indentation in exports. |
| client/package-lock.json | Removes some optional dependency entries. |
Files not reviewed (1)
- client/package-lock.json: Generated file
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+4
to
5
| const db_str = process.env.MONGODB_URI; | ||
| const articleConnection = mongoose.createConnection(db_str_articles); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.