Skip to content

Commit

Permalink
added procfile
Browse files Browse the repository at this point in the history
  • Loading branch information
sridhar-5 committed Aug 21, 2021
1 parent edaaabe commit 92ca86e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions configs/DatabaseConnection.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const mongoose = require("mongoose");
require("dotenv").config();

//Connecting the Database
async function ConnectDatabase() {
const DatabaseConnection = await mongoose.connect(
function ConnectDatabase() {
var DatabaseConnection = mongoose.connect(
//returns Promise
`mongodb+srv://${process.env.DATABASE_USER}:${process.env.DATABASE_USER_PASSWORD}@amritaevents.j3vp7.mongodb.net/${process.env.DATABASE_NAME}?retryWrites=true&w=majority`,
{
Expand Down

0 comments on commit 92ca86e

Please sign in to comment.