Skip to content

Commit

Permalink
[Fix] documented connectDatabase for easy understanding
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Oct 3, 2021
1 parent aa56e1a commit 3a101e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/DatabaseConnection.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
const { Client } = require("discord.js");
const mongoose = require("mongoose");

/**
* Connects with the given DATABASE
* @param {string} mongourl
* @param {Client} client
*/
module.exports.connectDatabase = (mongourl, client) => {
const dbOptions = {
useNewUrlParser: true,
Expand Down

0 comments on commit 3a101e9

Please sign in to comment.