Authored by ccbikai(👎🏻🍜)

add .catch(next)

... ... @@ -50,7 +50,7 @@ const index = (req, res, next) => {
return res.send(feed.render('atom-1.0'));
}
return res.send(feed.render('rss-2.0'));
});
}).catch(next);
};
const rss = (req, res, next, gmt) => {
let gender = req.query.gender || '1,2,3',
... ... @@ -72,7 +72,7 @@ const rss = (req, res, next, gmt) => {
layout: false,
items: result
});
});
}).catch(next);
};
module.exports = {
... ...