.wheat
DIAdiscord.js - Imagine an app
•Created by .wheat on 5/30/2024 in #djs-questions
Problem when i try to use keepAlive wth MongoDB
(async () => {
try {
mongoose.set('strictQuery', false);
await mongoose.connect('mongodb+srv://ddwadadw.mongodb.net/', {keepAlive: true, useNewUrlParser: true,
useUnifiedTopology: true,});
console.log('Connected to DataBase');
eventHandler(client); } catch (error) { console.log(
eventHandler(client); } catch (error) { console.log(
Error - ${error}
);
}
})();3 replies