faster auto downloads
This commit is contained in:
parent
34404cdd8d
commit
474bcc9574
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue