This commit is contained in:
2018-11-24 19:25:13 +01:00
parent ac18609a2e
commit c115d12e78
3 changed files with 4 additions and 2 deletions

View File

@@ -64,6 +64,7 @@ function ADis_OpenNextOwnMissions() {
return ADisDB.ADisMissionsOwn.where({
done: 'false'
}).and(function (item) {
console.log('ADis_OpenNextOwnMissions: filter', item);
return item.next_check <= Math.floor(new Date().getTime() / 1000)
}).limit(1)
}