Rename to id.js

This commit is contained in:
Aleksandr Statciuk 2022-02-11 10:52:38 +03:00
parent 09c4947ac6
commit 442916d130
3 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
const { db, file, parser, store, logger, cid } = require('../core')
const { db, file, parser, store, logger, id } = require('../core')
const { program } = require('commander')
const _ = require('lodash')
@ -62,7 +62,7 @@ async function saveToDatabase(streams = []) {
stream.set('cluster_id', { cluster_id: i + 1 })
if (!stream.get('channel_id')) {
const channel_id = cid.generate(item.name, item.filepath)
const channel_id = id.generate(item.name, item.filepath)
stream.set('channel_id', { channel_id })
stream.set('updated', { updated: true })