mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update create-database.js
This commit is contained in:
parent
64b6fbfe36
commit
881d534988
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue