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