Fixed lint issues

This commit is contained in:
RemixDev
2021-06-05 13:58:50 +02:00
parent e3e41f775f
commit aa3670bec1
24 changed files with 220 additions and 183 deletions

View File

@@ -1,18 +1,13 @@
// import { Deezer } from 'deezer-js'
import { ApiHandler } from '../../../types'
import { queueOrder, queue, currentJob } from '../../../main'
import { getQueue } from '../../../main'
const path: ApiHandler['path'] = '/getQueue'
// let homeCache: any
const handler: ApiHandler['handler'] = (_, res) => {
const result: any = {
queue,
order: queueOrder
}
if (currentJob) result.currentItem = currentJob.downloadObject.getSlimmedDict()
const result: any = getQueue()
res.send(result)
}