mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 02:47:02 -05:00
Update save-results.js
This commit is contained in:
@@ -4,6 +4,7 @@ const _ = require('lodash')
|
|||||||
const LOGS_DIR = process.env.LOGS_DIR || 'scripts/logs'
|
const LOGS_DIR = process.env.LOGS_DIR || 'scripts/logs'
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
|
await db.programs.load()
|
||||||
await db.programs.reset()
|
await db.programs.reset()
|
||||||
const files = await file.list(`${LOGS_DIR}/load-cluster/cluster_*.log`)
|
const files = await file.list(`${LOGS_DIR}/load-cluster/cluster_*.log`)
|
||||||
for (const filepath of files) {
|
for (const filepath of files) {
|
||||||
|
|||||||
Reference in New Issue
Block a user