Skip to content

Commit 490d92e

Browse files
committed
connected with db and created contact schema
1 parent 278bf6f commit 490d92e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/config/dbConnection.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ const mongoose = require("mongoose");
44
const connectDb = async ()=>{
55
try{
66
const connect = await mongoose.connect(process.env.CONNECTION_STRING);
7-
console.log(`Database Connected :
8-
${connect.connection.host},
9-
${connect.connection.name}`
7+
console.log("Database Connected" :
8+
connect.connection.host,
9+
connect.connection.name
1010
);
1111
}catch(err){
1212
console.log(err)

0 commit comments

Comments
 (0)