Improve update table script

This commit is contained in:
Julien Bisconti
2018-05-29 00:40:36 +02:00
committed by Andreas Gebhardt
parent 0c24343c82
commit d22672dffa
5 changed files with 34222 additions and 1494 deletions

View File

@@ -1,6 +1,10 @@
const fs = require('fs');
const dayjs = require('dayjs');
process.on('unhandledRejection', error => {
console.log('unhandledRejection', error.message);
});
function getLastUpdate(updated) {
const updt = Number(dayjs(updated).diff(dayjs(), 'days'));
if (updt < 0) {