no need for await

This commit is contained in:
unknown 2023-03-28 16:58:49 +02:00
parent 87246e8878
commit 2e49165f90
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ async function handleDownload(channelId) {
await redis.set(id, 'downloading') await redis.set(id, 'downloading')
logger.info({ message: `Added ${video.title} to the queue, ${id}` }) logger.info({ message: `Added ${video.title} to the queue, ${id}` })
await queue.add(async () => { queue.add(async () => {
logger.info({ message: `Starting to download ${video.title}, ${id}` }) logger.info({ message: `Starting to download ${video.title}, ${id}` })
const download = await ytdlp.downloadVideo('https://www.youtube.com' + video.url) const download = await ytdlp.downloadVideo('https://www.youtube.com' + video.url)