forked from Galactic/galactic-bot
ree
This commit is contained in:
parent
90c659858c
commit
d1812dc5c8
@ -24,7 +24,7 @@ class MongoDB {
|
|||||||
}
|
}
|
||||||
|
|
||||||
URI(database) {
|
URI(database) {
|
||||||
return `mongodb://${this._auth}${this.config.host}/${database}?authSource=${database}`;
|
return `mongodb://${this._auth}${this.config.host}/${database}${this._auth.length ? `?authSource=${database}` : ''}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
async init() {
|
async init() {
|
||||||
|
Loading…
Reference in New Issue
Block a user