mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-10 20:01:28 +03:00
Updated style of settings for DB
MongoDB connection string test now only tests once
This commit is contained in:
@@ -1609,7 +1609,7 @@ app.post('/api/transferDB', optionalJwt, async (req, res) => {
|
||||
app.post('/api/testConnectionString', optionalJwt, async (req, res) => {
|
||||
let success = null;
|
||||
let error = '';
|
||||
success = await db_api.connectToDB(5, true);
|
||||
success = await db_api.connectToDB(0, true);
|
||||
if (!success) error = 'Connection string failed.';
|
||||
|
||||
res.send({success: success, error: error});
|
||||
|
||||
Reference in New Issue
Block a user