mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 02:47:02 -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(`Creating '${clusterLog}'...`)
|
||||
await file.create(clusterLog)
|
||||
await db.channels.load()
|
||||
const channels = await db.channels.find({ cluster_id: options.clusterId })
|
||||
const total = options.days * channels.length
|
||||
logger.info(`Total ${total} requests`)
|
||||
|
||||
Reference in New Issue
Block a user