From 8d9f79e6624041f977582901a02bda51bcf7d664 Mon Sep 17 00:00:00 2001 From: Roberto Tonino Date: Tue, 1 Jun 2021 22:54:46 +0200 Subject: [PATCH] fix(server): lint errors --- server/src/routes/api/post/cancelAllDownloads.ts | 2 +- server/src/routes/api/post/logout.ts | 2 +- server/src/routes/api/post/removeFinishedDownloads.ts | 2 +- server/src/routes/api/post/removeFromQueue.ts | 2 +- server/src/routes/api/post/saveSettings.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/src/routes/api/post/cancelAllDownloads.ts b/server/src/routes/api/post/cancelAllDownloads.ts index e0a2a17..338b987 100644 --- a/server/src/routes/api/post/cancelAllDownloads.ts +++ b/server/src/routes/api/post/cancelAllDownloads.ts @@ -3,7 +3,7 @@ import { cancelAllDownloads } from '../../../main' const path = '/cancelAllDownloads' -const handler: ApiHandler['handler'] = async (req, res) => { +const handler: ApiHandler['handler'] = (_, res) => { cancelAllDownloads() res.send({ result: true }) } diff --git a/server/src/routes/api/post/logout.ts b/server/src/routes/api/post/logout.ts index 2bed3fe..e65f75f 100644 --- a/server/src/routes/api/post/logout.ts +++ b/server/src/routes/api/post/logout.ts @@ -5,7 +5,7 @@ import { sessionDZ } from '../../../main' const path: ApiHandler['path'] = '/logout' -const handler: ApiHandler['handler'] = async (req, res) => { +const handler: ApiHandler['handler'] = (req, res) => { sessionDZ[req.session.id] = new Deezer() res.send({ logged_out: true }) } diff --git a/server/src/routes/api/post/removeFinishedDownloads.ts b/server/src/routes/api/post/removeFinishedDownloads.ts index b687d64..b2e3aad 100644 --- a/server/src/routes/api/post/removeFinishedDownloads.ts +++ b/server/src/routes/api/post/removeFinishedDownloads.ts @@ -3,7 +3,7 @@ import { clearCompletedDownloads } from '../../../main' const path = '/removeFinishedDownloads' -const handler: ApiHandler['handler'] = async (req, res) => { +const handler: ApiHandler['handler'] = (_, res) => { clearCompletedDownloads() res.send({ result: true }) } diff --git a/server/src/routes/api/post/removeFromQueue.ts b/server/src/routes/api/post/removeFromQueue.ts index a46f772..2108e4c 100644 --- a/server/src/routes/api/post/removeFromQueue.ts +++ b/server/src/routes/api/post/removeFromQueue.ts @@ -3,7 +3,7 @@ import { cancelDownload } from '../../../main' const path = '/removeFromQueue' -const handler: ApiHandler['handler'] = async (req, res) => { +const handler: ApiHandler['handler'] = (req, res) => { const { uuid } = req.query if (uuid) { cancelDownload(uuid) diff --git a/server/src/routes/api/post/saveSettings.ts b/server/src/routes/api/post/saveSettings.ts index dd3f31a..3a0f608 100644 --- a/server/src/routes/api/post/saveSettings.ts +++ b/server/src/routes/api/post/saveSettings.ts @@ -8,7 +8,7 @@ export interface SaveSettingsData { spotifySettings: SpotifySettings } -const handler: ApiHandler['handler'] = async (req, res) => { +const handler: ApiHandler['handler'] = (req, res) => { const { settings, spotifySettings }: SaveSettingsData = req.query saveSettings(settings, spotifySettings) listener.send('updateSettings', { settings, spotifySettings })