crazy-odds-bet-shared 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/db/mongodb.js +1 -1
- package/package.json +1 -1
package/db/mongodb.js
CHANGED
|
@@ -41,7 +41,7 @@ class MongoDB {
|
|
|
41
41
|
) {
|
|
42
42
|
try {
|
|
43
43
|
const uri = connectionString || process.env.MONGODB_URI;
|
|
44
|
-
const database = dbName || process.env.
|
|
44
|
+
const database = dbName || process.env.MONGODB_DATABASE;
|
|
45
45
|
|
|
46
46
|
if (!uri) {
|
|
47
47
|
throw new Error('MongoDB URI not provided. Set MONGODB_URI in .env or pass as parameter.');
|