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
de44028f1d
commit
738546b64f
1 changed files with 2 additions and 1 deletions
|
@ -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...')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue