mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update load-cluster.js
This commit is contained in:
parent
198110aa54
commit
a19ebb96ad
1 changed files with 1 additions and 0 deletions
|
@ -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`)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue