v2 up ioago94it0a

This commit is contained in:
2018-12-03 20:20:03 +01:00
parent b9b7e70d87
commit a7354d622d
4 changed files with 71 additions and 60 deletions

19
src/blub.js Normal file
View File

@@ -0,0 +1,19 @@
(() => {
let msis = (async () => {
return await AutomaticDisposeCall.ADisDB.ADisMissions.where({
runner: 'om',
available: 'true',
done: 'false'
}).and(function (item) {
return item.next_check <= Math.floor(new Date().getTime() / 1000)
}).toArray()
})();
msis.then((result) => {
result.sort((a, b) => {
return a.next_check > b.next_check;
});
return result;
}).then((sortedResult) => {
console.table(sortedResult);
});
})();