mirror of
https://github.com/Expand-sys/mcbot
synced 2026-03-22 12:37:09 +11:00
aa
This commit is contained in:
parent
6d0ca1ff18
commit
88cfa63f5e
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ async function run() {
|
||||||
await dbclient.connect();
|
await dbclient.connect();
|
||||||
// Send a ping to confirm a successful connection
|
// Send a ping to confirm a successful connection
|
||||||
await dbclient.db("admin").command({ ping: 1 });
|
await dbclient.db("admin").command({ ping: 1 });
|
||||||
console.log("Pinged your deployment. You successfully connected to MongoDB!");
|
console.log("Pinged your deployment. Successfully connected to MongoDB!");
|
||||||
} finally {
|
} finally {
|
||||||
// Ensures that the client will close when you finish/error
|
// Ensures that the client will close when you finish/error
|
||||||
await dbclient.close();
|
await dbclient.close();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue