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,7 +26,8 @@ async function main() {
|
||||
logger.info(`Creating '${CLUSTER_PATH}'...`)
|
||||
await file.create(CLUSTER_PATH)
|
||||
await db.queue.load()
|
||||
const items = await db.queue.find({ cluster_id: options.clusterId })
|
||||
let items = await db.queue.find({ cluster_id: options.clusterId })
|
||||
items = _.orderBy(items, [i => i.channel.xmltv_id.toLowerCase(), 'date'])
|
||||
const total = items.length
|
||||
|
||||
logger.info('Loading...')
|
||||
|
||||
Reference in New Issue
Block a user