mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 10:56:57 -05:00
Update load-cluster.js
This commit is contained in:
@@ -26,6 +26,7 @@ async function main() {
|
|||||||
logger.info(`Loading cluster: ${options.clusterId}`)
|
logger.info(`Loading cluster: ${options.clusterId}`)
|
||||||
logger.info(`Creating '${clusterLog}'...`)
|
logger.info(`Creating '${clusterLog}'...`)
|
||||||
await file.create(clusterLog)
|
await file.create(clusterLog)
|
||||||
|
await db.channels.load()
|
||||||
const channels = await db.channels.find({ cluster_id: options.clusterId })
|
const channels = await db.channels.find({ cluster_id: options.clusterId })
|
||||||
const total = options.days * channels.length
|
const total = options.days * channels.length
|
||||||
logger.info(`Total ${total} requests`)
|
logger.info(`Total ${total} requests`)
|
||||||
|
|||||||
Reference in New Issue
Block a user