This commit is contained in:
Aleksandr Statciuk 2022-01-09 18:15:38 +03:00
parent d068f5083f
commit 557a05ddac
13 changed files with 3046 additions and 142057 deletions

View file

@ -18,7 +18,7 @@ async function main() {
logger.info(`Loading cluster: ${options.clusterId}`)
logger.info(`Creating '${clusterLog}'...`)
await file.create(clusterLog)
const items = await db.find({ cluster_id: options.clusterId })
const items = await db.channels.find({ cluster_id: options.clusterId })
const days = options.days || 1
const total = days * items.length
logger.info(`Total ${total} requests`)