fix(services): update all radarr/sonarr endpoints to use v3

This commit is contained in:
sct
2021-02-23 07:27:56 +00:00
parent 0acad8e9fa
commit da5ca02f81
6 changed files with 10 additions and 24 deletions

View File

@@ -39,9 +39,7 @@ sonarrRoutes.post('/test', async (req, res, next) => {
try {
const sonarr = new SonarrAPI({
apiKey: req.body.apiKey,
url: `${req.body.useSsl ? 'https' : 'http'}://${req.body.hostname}:${
req.body.port
}${req.body.baseUrl ?? ''}/api`,
url: SonarrAPI.buildSonarrUrl(req.body, '/api/v3'),
});
const profiles = await sonarr.getProfiles();