mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-18 12:31:27 +03:00
Test connection string now uses the currently typed in connection string rather than the last saved one
This commit is contained in:
@@ -1600,9 +1600,10 @@ app.post('/api/transferDB', optionalJwt, async (req, res) => {
|
||||
});
|
||||
|
||||
app.post('/api/testConnectionString', optionalJwt, async (req, res) => {
|
||||
const connection_string = req.body.connection_string;
|
||||
let success = null;
|
||||
let error = '';
|
||||
success = await db_api.connectToDB(0, true);
|
||||
success = await db_api.connectToDB(0, true, connection_string);
|
||||
if (!success) error = 'Connection string failed.';
|
||||
|
||||
res.send({success: success, error: error});
|
||||
|
||||
Reference in New Issue
Block a user