continue uniformizing + ditch lodash for native JS methods.

This commit is contained in:
theofficialomega
2025-07-16 12:37:34 +02:00
parent 2f5d209f5f
commit d8e4372f22
13 changed files with 67 additions and 31 deletions

View File

@@ -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')
}
}