Skip to content

Commit

Permalink
Update db.js
Browse files Browse the repository at this point in the history
  • Loading branch information
manishkandari9 authored Dec 8, 2024
1 parent cb943bf commit ea0bc56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backned/config/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const connectDB = async () => {
console.log('MongoDB connected successfully');
} catch (error) {
console.error('Error connecting to MongoDB:', error.message);
process.exit(1); // Exit with failure
process.exit(1);
}
};

Expand Down

0 comments on commit ea0bc56

Please sign in to comment.