Skip to content

Commit

Permalink
removed exit from dbconnector
Browse files Browse the repository at this point in the history
  • Loading branch information
i3rotlher committed Aug 18, 2023
1 parent 50e3aa9 commit e5eef83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/database/DbConnector.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async function establishConnection(callback) {
MongoClient.connect(uri, { poolSize: 20, useNewUrlParser: true, useUnifiedTopology: true }, async (err, db) => {
if (err) {
console.log('DB_ERROR: Can`t connect to DB. The Project may not be set up correctly. For more information read the README');
exit(-1);
// exit(-1);
}
connection = db.db('Seed');
if (typeof callback === 'function' && callback()) callback(connection);
Expand Down

0 comments on commit e5eef83

Please sign in to comment.