style: tvdb.login to tvdb.test

This commit is contained in:
TOomaAh
2024-10-26 16:13:52 +02:00
parent 61ecf74b28
commit 6f8d4bf00a
2 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ tvdbRoutes.put('/', (req, res) => {
tvdbRoutes.post('/test', async (req, res, next) => {
try {
const tvdb = new Tvdb();
await tvdb.login();
await tvdb.test();
return res.status(200).json({ message: 'Successfully connected to Tvdb' });
} catch (e) {
logger.error('Failed to test Tvdb', {