style: tvdb.login to tvdb.test

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

View File

@@ -55,7 +55,7 @@ class Tvdb extends ExternalAPI implements TvShowIndexer {
this.tmdb = new TheMovieDb();
}
public async login(): Promise<TvdbLoginResponse> {
public async test(): Promise<TvdbLoginResponse> {
try {
return await this.get<TvdbLoginResponse>('/en/445009', {});
} catch (error) {

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', {