Skip to content

Commit

Permalink
Update db-connector.js
Browse files Browse the repository at this point in the history
  • Loading branch information
zeteticl committed Dec 26, 2023
1 parent ef70756 commit c7bef75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/db-connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ cachegoose(mongoose, {
async function connect() {
try {
await mongoose.connect(mongoUrl, {
socketTimeoutMS: 15000
connectTimeoutMS: 1000 * 60 * 2,
socketTimeoutMS: 1000 * 60 * 2
});
console.log('Connected to MongoDB');
} catch (error) {
Expand Down

0 comments on commit c7bef75

Please sign in to comment.