mirror of https://github.com/preservetube/auto.git
no need for await
This commit is contained in:
parent
87246e8878
commit
2e49165f90
2
index.js
2
index.js
|
@ -64,7 +64,7 @@ async function handleDownload(channelId) {
|
|||
await redis.set(id, 'downloading')
|
||||
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}` })
|
||||
|
||||
const download = await ytdlp.downloadVideo('https://www.youtube.com' + video.url)
|
||||
|
|
Loading…
Reference in New Issue