mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
Linting
This commit is contained in:
@@ -41,8 +41,7 @@ async function Get(req: NextApiRequest, res: NextApiResponse) {
|
||||
'lidarr',
|
||||
];
|
||||
const mediaApps = config.apps.filter(
|
||||
(app) =>
|
||||
app.integration && mediaAppIntegrationTypes.includes(app.integration.type)
|
||||
(app) => app.integration && mediaAppIntegrationTypes.includes(app.integration.type)
|
||||
);
|
||||
|
||||
const medias = await Promise.all(
|
||||
|
||||
@@ -3,7 +3,6 @@ import { getCookie } from 'cookies-next';
|
||||
import axios from 'axios';
|
||||
import Consola from 'consola';
|
||||
import { getConfig } from '../../../../tools/config/getConfig';
|
||||
import { Config } from '../../../../tools/types';
|
||||
import { MediaType } from '../../../../modules/overseerr/SearchResult';
|
||||
|
||||
async function Get(req: NextApiRequest, res: NextApiResponse) {
|
||||
|
||||
@@ -2,7 +2,6 @@ import axios from 'axios';
|
||||
import { getCookie } from 'cookies-next';
|
||||
import { NextApiRequest, NextApiResponse } from 'next';
|
||||
import { getConfig } from '../../../../tools/config/getConfig';
|
||||
import { Config } from '../../../../tools/types';
|
||||
|
||||
async function Get(req: NextApiRequest, res: NextApiResponse) {
|
||||
const configName = getCookie('config-name', { req });
|
||||
|
||||
@@ -39,10 +39,8 @@ async function Get(req: NextApiRequest, res: NextApiResponse) {
|
||||
const options = {
|
||||
host: url.hostname,
|
||||
port: url.port,
|
||||
login:
|
||||
app.integration.properties.find((x) => x.field === 'username')?.value ?? undefined,
|
||||
hash:
|
||||
app.integration.properties.find((x) => x.field === 'password')?.value ?? undefined,
|
||||
login: app.integration.properties.find((x) => x.field === 'username')?.value ?? undefined,
|
||||
hash: app.integration.properties.find((x) => x.field === 'password')?.value ?? undefined,
|
||||
};
|
||||
|
||||
const nzbGet = NzbgetClient(options);
|
||||
|
||||
@@ -31,10 +31,8 @@ async function Post(req: NextApiRequest, res: NextApiResponse) {
|
||||
const options = {
|
||||
host: url.hostname,
|
||||
port: url.port,
|
||||
login:
|
||||
app.integration.properties.find((x) => x.field === 'username')?.value ?? undefined,
|
||||
hash:
|
||||
app.integration.properties.find((x) => x.field === 'password')?.value ?? undefined,
|
||||
login: app.integration.properties.find((x) => x.field === 'username')?.value ?? undefined,
|
||||
hash: app.integration.properties.find((x) => x.field === 'password')?.value ?? undefined,
|
||||
};
|
||||
|
||||
const nzbGet = NzbgetClient(options);
|
||||
|
||||
@@ -32,10 +32,8 @@ async function Post(req: NextApiRequest, res: NextApiResponse) {
|
||||
const options = {
|
||||
host: url.hostname,
|
||||
port: url.port,
|
||||
login:
|
||||
app.integration.properties.find((x) => x.field === 'username')?.value ?? undefined,
|
||||
hash:
|
||||
app.integration.properties.find((x) => x.field === 'password')?.value ?? undefined,
|
||||
login: app.integration.properties.find((x) => x.field === 'username')?.value ?? undefined,
|
||||
hash: app.integration.properties.find((x) => x.field === 'password')?.value ?? undefined,
|
||||
};
|
||||
|
||||
const nzbGet = NzbgetClient(options);
|
||||
|
||||
Reference in New Issue
Block a user