Update update-api.js

This commit is contained in:
Aleksandr Statciuk 2022-01-30 02:41:48 +03:00
parent 61085bf2db
commit eff69e2eae

View file

@ -67,9 +67,9 @@ async function loadPrograms() {
}
async function saveToGuidesJson(guides = []) {
const channelsPath = `${API_DIR}/guides.json`
logger.info(`Saving to "${channelsPath}"...`)
await file.create(channelsPath, JSON.stringify(guides))
const guidesPath = `${API_DIR}/guides.json`
logger.info(`Saving to "${guidesPath}"...`)
await file.create(guidesPath, JSON.stringify(guides))
}
async function saveToProgramsJson(programs = []) {