fix(server): lint errors
This commit is contained in:
parent
6dfd28f7a9
commit
8d9f79e662
@ -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 })
|
||||
}
|
||||
|
@ -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 })
|
||||
}
|
||||
|
@ -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 })
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -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 })
|
||||
|
Loading…
Reference in New Issue
Block a user