Skip to content

Commit

Permalink
fix envs configs
Browse files Browse the repository at this point in the history
  • Loading branch information
trangiabach committed Nov 4, 2023
1 parent 981215b commit 5475b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Collection, Document, MongoClient } from 'mongodb';
import dotenv from 'dotenv';
dotenv.config();

const USERNAME = 'luke';
const USERNAME = process.env.USERNAME || 'luke';
const PASSWORD = process.env.PASSWORD;

const uri_thedp = `mongodb+srv://${USERNAME}:${PASSWORD}@dp.5aehsyo.mongodb.net/?retryWrites=true&w=majority`;
Expand Down

0 comments on commit 5475b97

Please sign in to comment.