-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed MongoDB connecting string database URI.
- Loading branch information
Showing
3 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ const csrfProtection = csrf({ cookie: true }); // enable this | |
app.use(csrfProtection); // enable this | ||
|
||
// MongoDB connection string | ||
process.env.MONGO_URI = "mongodb+srv://jokwuoma:[email protected]/?retryWrites=true&w=majority&appName=Cluster0"; | ||
process.env.MONGO_URI = "mongodb+srv://jokwuoma:[email protected]/"; | ||
const dbUri = process.env.MONGO_URI; | ||
|
||
mongoose | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ const Question = require("./Question"); // Adjust the path as necessary to your | |
const { data } = require("./data"); // Adjust the path to where your data.js file is located | ||
|
||
// Store my MongoDB connection string in the MONGO_URI environment variable to connect to the database | ||
process.env.MONGO_URI = "mongodb+srv://jokwuoma:[email protected]/?retryWrites=true&w=majority&appName=Cluster0"; | ||
process.env.MONGO_URI = "mongodb+srv://jokwuoma:[email protected]/"; | ||
const mongoURI = process.env.MONGO_URI; | ||
// const mongoURI = 'mongodb+srv://${username}:${password}@cluster0.3x0s7hh.mongodb.net/?appName=mongosh+2.1.5'; | ||
|
||
|
This file contains 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