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:
@ -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,
|
||||
|
Reference in New Issue
Block a user