1
0
mirror of https://github.com/comatory/fb2iCal synced 2025-06-05 22:09:25 +02:00

fix issues with deployment due to winston logging getting in the way

This commit is contained in:
Ondřej Synáček
2020-11-15 15:13:49 +01:00
parent a44468fd68
commit a8c5d12a7b
13 changed files with 248 additions and 92 deletions

View File

@ -18,12 +18,12 @@ const downloadHTML = (logger) => (async (req, res, next) => {
}
})
const download = async (req, res, next) => {
const download = (logger) => (async (req, res, next) => {
try {
const { url } = req.body
const ics = await retrieveICS(url, {
logger: appLogger,
logger,
crawl,
})
@ -34,7 +34,7 @@ const download = async (req, res, next) => {
} catch (err) {
next(err)
}
}
})
module.exports = {
downloadHTML,