Update update-codes.js

This commit is contained in:
Aleksandr Statciuk 2021-10-18 08:08:21 +03:00
parent 210a2d646f
commit f2cd80044c

View file

@ -36,9 +36,11 @@ async function main() {
file.write('.gh-pages/codes.json', JSON.stringify(sorted))
const _items = {}
countries.forEach(country => {
Object.values(countries).forEach(country => {
_items[country.code] = {
...country,
flag: country.flag,
name: country.name,
code: country.code,
expanded: false,
channels: []
}