Rename config.ignore to config.skip

This commit is contained in:
Aleksandr Statciuk 2022-11-12 00:50:38 +03:00
parent cc3e319da3
commit 2afe3ff92d
19 changed files with 20 additions and 20 deletions

View file

@ -42,7 +42,7 @@ async function createQueue() {
if (!site) continue
const configPath = `${dir}/${site}.config.js`
const config = require(file.resolve(configPath))
if (config.ignore) continue
if (config.skip) continue
const filename = file.basename(filepath)
const [__, region] = filename.match(/_([a-z-]+)\.channels\.xml/i) || [null, null]
const groupId = `${region}/${site}`

View file

@ -15,9 +15,9 @@ async function main() {
const files = await file.list(CONFIGS_PATH).catch(console.error)
for (const filepath of files) {
try {
const { site, ignore } = require(file.resolve(filepath))
const { site, skip } = require(file.resolve(filepath))
if (ignore) continue
if (skip) continue
data.push([
site,