mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
fix: Use module.exports instead of export default
This commit is contained in:
@@ -269,7 +269,7 @@ export function cron (options = {}) {
|
||||
}
|
||||
|
||||
// TODO check that it's used everywhere
|
||||
export default async function cronMiddleware (req, res, next) {
|
||||
module.exports = async function cronMiddleware (req, res, next) {
|
||||
let user = res.locals.user;
|
||||
let analytics = res.analytics;
|
||||
|
||||
@@ -335,4 +335,4 @@ export default async function cronMiddleware (req, res, next) {
|
||||
.then(() => next())
|
||||
.catch(next);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user