mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
remove old module.exports from server aswell
This commit is contained in:
@@ -160,10 +160,10 @@ async function cronAsync (req, res) {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = function cronMiddleware (req, res, next) {
|
||||
export default function cronMiddleware (req, res, next) {
|
||||
cronAsync(req, res)
|
||||
.then(() => {
|
||||
next();
|
||||
})
|
||||
.catch(next);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user