Improve update table script
This commit is contained in:
committed by
Andreas Gebhardt
parent
0c24343c82
commit
d22672dffa
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user