This commit is contained in:
Erik 2022-06-13 14:14:32 +03:00
parent 90c659858c
commit d1812dc5c8
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -24,7 +24,7 @@ class MongoDB {
}
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() {