mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2025-12-24 02:39:18 -05:00
style: tvdb.login to tvdb.test
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user