mirror of
https://github.com/iptv-org/epg
synced 2026-05-05 08:56:59 -04:00
continue uniformizing + ditch lodash for native JS methods.
This commit is contained in:
@@ -3,6 +3,7 @@ const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
const timezone = require('dayjs/plugin/timezone')
|
||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||
const { uniqBy } = require('../../functions/functions')
|
||||
|
||||
dayjs.extend(utc)
|
||||
dayjs.extend(timezone)
|
||||
@@ -45,8 +46,7 @@ module.exports = {
|
||||
return programs
|
||||
},
|
||||
async channels({ country }) {
|
||||
const _ = require('lodash')
|
||||
|
||||
|
||||
const countries = {
|
||||
ao: 'ago',
|
||||
bj: 'ben',
|
||||
@@ -114,7 +114,7 @@ module.exports = {
|
||||
})
|
||||
})
|
||||
|
||||
return _.uniqBy(channels, 'site_id')
|
||||
return uniqBy(channels, 'site_id')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user