fix(tautulli): only test connection if hostname is defined (#3573)

pull/3574/head
TheCatLady 10 months ago committed by GitHub
parent a686d31e4d
commit f7b4dfcac4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -254,6 +254,7 @@ settingsRoutes.post('/tautulli', async (req, res, next) => {
Object.assign(settings.tautulli, req.body);
if (settings.tautulli.hostname) {
try {
const tautulliClient = new TautulliAPI(settings.tautulli);
@ -274,6 +275,7 @@ settingsRoutes.post('/tautulli', async (req, res, next) => {
message: 'Unable to connect to Tautulli.',
});
}
}
return res.status(200).json(settings.tautulli);
});

Loading…
Cancel
Save