mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-20 11:41:00 +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();
|
||||
|
||||
// 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_bs.next(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user