mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 02:47:02 -05:00
Update create-database.js
This commit is contained in:
@@ -50,7 +50,7 @@ async function loadChannels() {
|
|||||||
|
|
||||||
async function saveToDatabase() {
|
async function saveToDatabase() {
|
||||||
logger.info('Saving to the database...')
|
logger.info('Saving to the database...')
|
||||||
|
await db.channels.load()
|
||||||
await db.channels.reset()
|
await db.channels.reset()
|
||||||
const chunks = split(_.shuffle(channels), options.maxClusters)
|
const chunks = split(_.shuffle(channels), options.maxClusters)
|
||||||
for (const [i, chunk] of chunks.entries()) {
|
for (const [i, chunk] of chunks.entries()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user