v3: expose public interface for logger and add tests

This commit is contained in:
Matteo Pagliazzi
2016-04-13 18:18:00 +02:00
parent 28d8c370c3
commit 8817f795b1
11 changed files with 98 additions and 20 deletions

View File

@@ -380,7 +380,7 @@ module.exports = function cronMiddleware (req, res, next) {
$lt: moment(now).subtract(user.isSubscribed() ? 90 : 30, 'days'),
},
'challenge.id': {$exists: false},
}).exec(); // TODO catch error or at least log it, wait before returning?
}).exec(); // TODO wait before returning?
let ranCron = user.isModified();
let quest = common.content.quests[user.party.quest.key];