mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-17 09:51:28 +03:00
Fixed issue where mongodb attempted to connect even when using local DB
This commit is contained in:
@@ -500,7 +500,8 @@ async function loadConfig() {
|
|||||||
loadConfigValues();
|
loadConfigValues();
|
||||||
|
|
||||||
// connect to DB
|
// connect to DB
|
||||||
await db_api.connectToDB();
|
if (!config_api.getConfigItem('ytdl_use_local_db'))
|
||||||
|
await db_api.connectToDB();
|
||||||
db_api.database_initialized = true;
|
db_api.database_initialized = true;
|
||||||
db_api.database_initialized_bs.next(true);
|
db_api.database_initialized_bs.next(true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user