From d1812dc5c8e96a298ecdfc6c844d1a044f2ddb31 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Mon, 13 Jun 2022 14:14:32 +0300 Subject: [PATCH] ree --- src/utilities/SimpleMongoWrapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utilities/SimpleMongoWrapper.js b/src/utilities/SimpleMongoWrapper.js index b254f64..20202a7 100644 --- a/src/utilities/SimpleMongoWrapper.js +++ b/src/utilities/SimpleMongoWrapper.js @@ -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() {