Skip to content

Commit

Permalink
removed mongo credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
geofflangenderfer committed Jun 19, 2021
1 parent 902f1aa commit 862b456
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let ObjectId = mongodb.ObjectId;
const browser = await puppeteer.launch({ args: ['--no-sandbox'] });
const page = await browser.newPage();

const uri = "mongodb+srv://mongo:[email protected]/leetcode?retryWrites=true&w=majority&useNewUrlParser=true&useUnifiedTopology=true";
const uri = <get_from_mongo_website>
const client = new MongoClient(uri);
await client.connect();

Expand Down
2 changes: 1 addition & 1 deletion mongoCon.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import mongodb from 'mongodb'
import { readFile, writeFile } from 'fs/promises';
const { MongoClient, ObjectId } = mongodb

const uri = "mongodb+srv://mongo:[email protected]/leetcode?retryWrites=true&w=majority&useNewUrlParser=true&useUnifiedTopology=true";
const uri = <get_from_mongo_website>
const client = new MongoClient(uri);

try {
Expand Down

0 comments on commit 862b456

Please sign in to comment.