mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Update create-matrix.js
This commit is contained in:
parent
12034df995
commit
b15ed0a4c6
4 changed files with 7 additions and 10 deletions
|
@ -1,8 +1,8 @@
|
|||
const { logger, db } = require('../core')
|
||||
|
||||
async function main() {
|
||||
await db.channels.load()
|
||||
const docs = await db.channels.find({}).sort({ cluster_id: 1 })
|
||||
await db.queue.load()
|
||||
const docs = await db.queue.find({}).sort({ cluster_id: 1 })
|
||||
const cluster_id = docs.reduce((acc, curr) => {
|
||||
if (!acc.includes(curr.cluster_id)) acc.push(curr.cluster_id)
|
||||
return acc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue