faster auto downloads

This commit is contained in:
unknown 2023-03-23 22:33:55 +01:00
parent 34404cdd8d
commit 474bcc9574
1 changed files with 2 additions and 2 deletions

View File

@ -14,9 +14,9 @@ const prisma = new PrismaClient()
async function handleCheck() { async function handleCheck() {
const channels = await prisma.autodownload.findMany() const channels = await prisma.autodownload.findMany()
for (c of channels) { channels.forEach(async (c) => {
await handleDownload(c.channel) await handleDownload(c.channel)
} })
} }
async function handleDownload(channelId) { async function handleDownload(channelId) {